diff options
author | Johan Hovold <johan@kernel.org> | 2021-03-22 16:53:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-23 13:27:13 +0100 |
commit | 7180495cb3d0e2a2860d282a468b4146c21da78f (patch) | |
tree | 76a8dbdce08c8d7029eb10a92a7e38e37ad91a76 /lib/cpu_rmap.c | |
parent | e4c77070ad45fc940af1d7fb1e637c349e848951 (diff) | |
download | linux-7180495cb3d0e2a2860d282a468b4146c21da78f.tar.gz linux-7180495cb3d0e2a2860d282a468b4146c21da78f.tar.bz2 linux-7180495cb3d0e2a2860d282a468b4146c21da78f.zip |
USB: cdc-acm: fix double free on probe failure
If tty-device registration fails the driver copy of any Country
Selection functional descriptor would end up being freed twice; first
explicitly in the error path and then again in the tty-port destructor.
Drop the first erroneous free that was left when fixing a tty-port
resource leak.
Fixes: cae2bc768d17 ("usb: cdc-acm: Decrement tty port's refcount if probe() fail")
Cc: stable@vger.kernel.org # 4.19
Cc: Jaejoong Kim <climbbb.kim@gmail.com>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210322155318.9837-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/cpu_rmap.c')
0 files changed, 0 insertions, 0 deletions