USB: serial: kl5kusb105: fix memleak on open
authorJohan Hovold <johan@kernel.org>
Fri, 4 Dec 2020 08:55:19 +0000 (09:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Dec 2020 12:39:04 +0000 (13:39 +0100)
commita345fe6935b1d47afd8d238578c156d349942588
tree1d22ca2ebec57c55acbd229d3c4c13f0259ebb6d
parent84f747ade2fbbe5ab5cc8ff6a0cbad434cb2c553
USB: serial: kl5kusb105: fix memleak on open

commit 3f203f057edfcf6bd02c6b942799262bfcf31f73 upstream.

Fix memory leak of control-message transfer buffer on successful open().

Fixes: 6774d5f53271 ("USB: serial: kl5kusb105: fix open error path")
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/kl5kusb105.c