diff options
author | Johan Hovold <johan@kernel.org> | 2017-04-26 12:30:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-18 16:43:55 +0200 |
commit | 11d4d32158eeaf36fe1073a4a260193d7a19ccf1 (patch) | |
tree | c3a2a3296511e46507a1431088bca3113e21cee5 /mm | |
parent | serial: ifx6x60: fix use-after-free on module unload (diff) | |
download | linux-11d4d32158eeaf36fe1073a4a260193d7a19ccf1.tar.xz linux-11d4d32158eeaf36fe1073a4a260193d7a19ccf1.zip |
tty: ehv_bytechan: clean up init error handling
Straighten out the initcall error handling to avoid deregistering a
never-registered tty driver (something which would lead to a
NULL-pointer dereference) in the most unlikely event that driver
registration fails (e.g. we've run out of major numbers).
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions