]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-pf: Fix the device state on error
authorHariprasad Kelam <hkelam@marvell.com>
Wed, 30 Sep 2020 16:09:14 +0000 (21:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Oct 2020 09:55:55 +0000 (11:55 +0200)
commit5cfc870ede16e7c3d5ee0b82b9eb7badcbdf12e7
treeba250918d9ada41e0741a5e4328a5d303d1be6a8
parent7778b88602289d26c8ec61f01abea34f2504c283
octeontx2-pf: Fix the device state on error

[ Upstream commit 1ea0166da0509e987caa42c30a6a71f2c6ca1875 ]

Currently in otx2_open on failure of nix_lf_start
transmit queues are not stopped which are already
started in link_event. Since the tx queues are not
stopped network stack still try's to send the packets
leading to driver crash while access the device resources.

Fixes: 50fe6c02e ("octeontx2-pf: Register and handle link notifications")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c