]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 13 Aug 2019 12:11:36 +0000 (14:11 +0200)
commitf7087bd68ee937681f78bc53ddd841d561a399e2
treeeb02c5ce16f267c6b5e6b22398fe10fbc185604c
parente648d1989147ccbf723e660546f2274ecaddc741
rtlwifi: fix a potential NULL pointer dereference

BugLink: https://bugs.launchpad.net/bugs/1837517
[ 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>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/realtek/rtlwifi/base.c