]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: fix stack dump
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 15 May 2015 09:19:39 +0000 (14:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 02:54:25 +0000 (11:54 +0900)
commit8eba7710d77bd1d597fe597b1eb80381927c6d08
treec89aa989c873b8457b4622a08f60a1bc45d2aa68
parentc2370aced3d8e5b7062cdd6f37df13e9e9955ad3
staging: rtl8712: fix stack dump

del_timer_sync() is not to be called in the interrupt context unless
the timer is irqsafe. but most of the functions where commits
d2b89d582ebc9e7a and a269591a1a0a6661 touched were called in interrupt
context. And as a result the WARN_ON was getting triggered. Changed
to del_timer() in places which were called from interrupt.

Fixes: a269591a1a0a6661 ("Staging: rtl8712: Eliminate use of _cancel_timer"
Fixes: d2b89d582ebc9e7a ("Staging: rtl8712: Eliminate use of _cancel_timer_ex")
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=97711
Reported-by: Arek Rusniak <arek.rusi@gmail.com>
Tested-by: Arek Rusniak <arek.rusi@gmail.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_led.c
drivers/staging/rtl8712/rtl871x_cmd.c
drivers/staging/rtl8712/rtl871x_mlme.c
drivers/staging/rtl8712/rtl871x_pwrctrl.c
drivers/staging/rtl8712/rtl871x_sta_mgt.c