net: sparx5: do not refer to skb after passing it on
authorSteen Hegelund <steen.hegelund@microchip.com>
Wed, 2 Feb 2022 08:30:39 +0000 (09:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:07 +0000 (12:03 +0100)
commit0ceba4d64feec0c05dc5fbd549a703e25035d7d1
treee7d4b0beab72016338461e8ee80bb33540641890
parent646952b2210f19e584d2bf9eb5d092abdca2fcc1
net: sparx5: do not refer to skb after passing it on

[ Upstream commit 81eb8b0b18789e647e65579303529fd52d861cc2 ]

Do not try to use any SKB fields after the packet has been passed up in the
receive stack.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Link: https://lore.kernel.org/r/20220202083039.3774851-1-steen.hegelund@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c