]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: qede: fix use-after-free on recovery and AER handling
authorAlexander Lobakin <alobakin@marvell.com>
Tue, 23 Jun 2020 13:51:35 +0000 (16:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 22:01:16 +0000 (15:01 -0700)
commitec6c80590bde6b5dfa4970fffa3572f1acd313ca
tree6687b950c26638923241a50391520166703e2d33
parent1c85f394c2206ea3835f43534d5675f0574e1b70
net: qede: fix use-after-free on recovery and AER handling

Set edev->cdev pointer to NULL after calling remove() callback to avoid
using of already freed object.

Fixes: ccc67ef50b90 ("qede: Error recovery process")
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>
drivers/net/ethernet/qlogic/qede/qede_main.c