]> git.baikalelectronics.ru Git - kernel.git/commit
isp1760-hcd: fix possible memory leak if urb could not be enqueued
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Thu, 5 Apr 2012 12:56:10 +0000 (14:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 20:51:19 +0000 (13:51 -0700)
commit45871cb4f875cdbbd043f52a4503eece11bb42bd
treee3e89efe9d4707d692f3d23b0a701ac86d96d125
parentf04e9459b1db2568c33e6404f7f1375abd42cfe3
isp1760-hcd: fix possible memory leak if urb could not be enqueued

After packetize_urb was called, we could still run into an error path
and will not hand over the prepared qtd to the qtd_list. Make sure to
free the prepared qtd in that case to avoid memory leaks.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/isp1760-hcd.c