]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtlwifi: fix a potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Tue, 12 Mar 2019 07:56:33 +0000 (02:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:39 +0000 (06:43 -0700)
commit8dc032a293d4f5454dabf02b46f7ee0783fc8af4
tree0f97ad95a04c01c89b472b8999754da7956b09f0
parentf382ab1afe260e60dc555619e5d196aa52afaa10
rtlwifi: fix a potential NULL pointer dereference

[ Upstream commit 765976285a8c8db3f0eb7f033829a899d0c2786e ]

In case alloc_workqueue fails, the fix reports the error and
returns 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/realtek/rtlwifi/base.c