]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: qede: stop adding events on an already destroyed workqueue
authorAlexander Lobakin <alobakin@marvell.com>
Tue, 23 Jun 2020 13:51:31 +0000 (16:51 +0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commit1a9e4438b0f078beab8db2b0884d659b66f79ac8
tree7b482a00b0d705db3cc012ed82c9f10211b09968
parentea6ec5c740d80a67a4374f3437cef5c79f7b301c
net: qede: stop adding events on an already destroyed workqueue

BugLink: https://bugs.launchpad.net/bugs/1885942
[ Upstream commit 4079c7f7a2a00ab403c177ce723b560de59139c3 ]

Set rdma_wq pointer to NULL after destroying the workqueue and check
for it when adding new events to fix crashes on driver unload.

Fixes: cee9fbd8e2e9 ("qede: Add qedr framework")
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/qlogic/qede/qede_rdma.c