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)
commit5c2b6078ce02c3e81eb0aa2f07bf59ba67461ce2
tree2fc81027d6e94e874c0ab101380852c8aa4c75d0
parentb88bb291b21f364c5441bdbf8195502bc75e6b47
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