linux/drivers/staging/ft1000
Alexey Khoroshilov 773fe724ab staging: ft1000: fix memory leak on error path in ft1000_probe()
ft1000dev->tx_urb and ft1000dev->rx_urb are not deallocated
if something goes wrong in ft1000_probe(). Also there is no
check for success of urb allocation. The patch fixes the both issues.

By the way, there is no sense in GFP_ATOMIC for urb allocation here,
so it is changed to GFP_KERNEL.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-06-11 17:13:37 -07:00
..
ft1000-pcmcia Staging: ft1000-pcmcia: ft1000_dnld.c: fixed four checkpatch 2013-06-06 13:12:43 -07:00
ft1000-usb staging: ft1000: fix memory leak on error path in ft1000_probe() 2013-06-11 17:13:37 -07:00
Kconfig
Makefile
TODO
ft1000.h staging: ft1000: unify struct ft1000_info between USB and PCMCIA drivers 2013-01-07 12:33:45 -08:00