diff options
| author | Johan Hovold <johan@kernel.org> | 2021-09-17 12:12:04 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-06 15:31:13 +0200 |
| commit | 88aa7727a6f614b5a3bc17198d677e419598ad8b (patch) | |
| tree | 1c3c8815c3f9846260fbef953a5c75ee942ccaef /include/uapi/linux/securebits.h | |
| parent | 4a319dd66f497bb5e8441950af48c845c0670849 (diff) | |
net: hso: fix muxed tty registration
commit e8f69b16ee776da88589b5271e3f46020efc8f6c upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/securebits.h')
0 files changed, 0 insertions, 0 deletions
