diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-07-23 09:43:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-27 12:17:21 +0200 |
commit | 72fdb403008c598dca535cfe8ade25eb2253c1d2 (patch) | |
tree | fedb22a6eace59b946f31d5a3132365536beba1e /Documentation/target | |
parent | 9f90a4ddef4e4d3aa4229f6b117d4e57231457b3 (diff) | |
download | linux-72fdb403008c598dca535cfe8ade25eb2253c1d2.tar.bz2 |
tty: pdc_cons, free tty_driver upon failure
pdc_console_tty_driver_init() does not free the allocated tty driver in
case tty_register_driver() fails. Add one tty_driver_kref_put() to the
error path.
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210723074317.32690-9-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/target')
0 files changed, 0 insertions, 0 deletions