commit | b46a2067f36d7c5f2f259c4ed476359e6e9d668f | [log] [tgz] |
---|---|---|
author | Navid Emamdoost <navid.emamdoost@gmail.com> | Thu Sep 19 21:44:38 2019 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Nov 12 19:15:47 2019 +0100 |
tree | 35c65bd395e441fe28fa36c71d5ceeeb4d8bb062 | |
parent | d9510ea12a1c42948c69dfc1a23657bea4d7244e [diff] |
can: gs_usb: gs_can_open(): prevent memory leak commit fb5be6a7b4863ecc44963bb80ca614584b6c7817 upstream. In gs_can_open() if usb_submit_urb() fails the allocated urb should be released. Fixes: d08e973a77d1 ("can: gs_usb: Added support for the GS_USB CAN devices") Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>