]> git.baikalelectronics.ru Git - kernel.git/commit
net: cw1200: fix a NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Tue, 12 Mar 2019 08:05:02 +0000 (03:05 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Apr 2019 16:40:09 +0000 (19:40 +0300)
commit683943017b40064cbf77117b73307f0766615a96
tree3e8e0054f5f73f51dd73f2b540c745406c2b71c3
parent67f0aebd8aaf14bf92dca2ffceee946632e04abd
net: cw1200: fix a NULL pointer dereference

In case create_singlethread_workqueue fails, the fix free the
hardware and returns NULL to avoid NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/st/cw1200/main.c