]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: corner case NULL pointer dereference fix
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 26 Mar 2014 02:01:18 +0000 (19:01 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Mar 2014 18:20:06 +0000 (14:20 -0400)
commit798b937218ef7f62d348354f2425947a8c7ac759
tree441ae72e75e2b5b28b517692b58f0743b80d21db
parent8f52fd8aa3b437f669c221a9f97e36a64f6f382f
mwifiex: corner case NULL pointer dereference fix

When next scan command is delayed due to Tx traffic and
meanwhile synchronous command is received followed by a signal,
we cance all pending commands. NULL pointer dereference is seen
in this case while queueing next command in scan delay timer.
This patch adds a check to fix this issue.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/main.c