OSDN Git Service

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)
commit0ed2a005347400500a39ea7c7318f1fea57fb3ca
tree3e8e0054f5f73f51dd73f2b540c745406c2b71c3
parentb2c01aab9646ed8ffb7c549afe55d5349c482425
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