]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:44:59 +0000 (06:44 -0700)
commit0a0bf234477632053865102d1a34554e6dc0a9ce
treeb93f3d0e55db41f56d77327dc15e59857c450431
parent8945579832c651bf58d123df0635fb099b403af5
net: cw1200: fix a NULL pointer dereference

[ Upstream commit 0ed2a005347400500a39ea7c7318f1fea57fb3ca ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/st/cw1200/main.c