summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-09-17 13:12:04 +0300
committerDavid S. Miller <davem@davemloft.net>2021-09-17 13:19:58 +0300
commite8f69b16ee776da88589b5271e3f46020efc8f6c (patch)
tree227611cd50cddf3faa10caa0a522ecd55643304d /lib
parentfc0c0548c1a2e676d3a928aaed70f2d4d254e395 (diff)
downloadlinux-e8f69b16ee776da88589b5271e3f46020efc8f6c.tar.xz
net: hso: fix muxed tty registration
If resource allocation and registration fail for a muxed tty device (e.g. if there are no more minor numbers) the driver should not try to deregister the never-registered (or already-deregistered) tty. Fix up the error handling to avoid dereferencing a NULL pointer when attempting to remove the character device. Fixes: 72dc1c096c70 ("HSO: add option hso driver") Cc: stable@vger.kernel.org # 2.6.27 Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions