]> git.karo-electronics.de Git - linux-beck.git/commit
wil6210: check error in wil_target_reset()
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Wed, 6 Aug 2014 07:31:52 +0000 (10:31 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Aug 2014 20:17:32 +0000 (16:17 -0400)
commitbbb2adc7b47cbe841d3cb2fa048f720647f5f4cd
tree716b194672288a2478ff8a6c796e509eca6148dc
parent02525a7925c9a3c55ceef7e9a30218dc47ced1ad
wil6210: check error in wil_target_reset()

When resetting target in wil_target_reset(), error may occur.
Indicate error via error code. In case of error, don't attempt to further
interact with card, specifically don't attempt firmware download or
interrupts enabling.

Move wil_rx_fini() to be always executed to prevent memory leak.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/main.c