]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: remove incorrect reset_resume handler
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 31 Oct 2014 00:45:37 +0000 (02:45 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 3 Nov 2014 22:59:05 +0000 (00:59 +0200)
commit956a9954a34c8e9cea2a6bb84cc6134a5f165d0d
tree480cf95acaab30a9d6d5f705de91f935ecf69884
parentceeb0b64ed350a0804d4f50457b8f4bb2bc11f49
ath6kl: remove incorrect reset_resume handler

Existing implementation of reset_resume handler just calls
ath6kl_usb_remove() that deallocates all resources.
It can lead to double free, etc. on disconnect.

The patch removes reset_resume handler,
so usb core could conservatively reset the driver.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/usb.c