]> git.baikalelectronics.ru Git - kernel.git/commit
carl9170: fix leaks at failure path in carl9170_usb_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 28 Sep 2013 03:51:51 +0000 (23:51 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 22 May 2014 18:04:36 +0000 (14:04 -0400)
commita1ac16d82a060d9804d7544bd53b7db3448071b8
tree2fc81027d6e94e874c0ab101380852c8aa4c75d0
parent973cb10a5044fae662980b5e049542aa4e1c161e
carl9170: fix leaks at failure path in carl9170_usb_probe()

carl9170_usb_probe() does not handle request_firmware_nowait() failure
that leads to several leaks in this case.
The patch adds all required deallocations.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/usb.c