]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Feb 2022 17:07:22 +0000 (09:07 -0800)
commit488ec40a33194d94d7fd0e9f5040e4eb363757ee
tree6f1fa43d19e90381dc0b6cbbf36ee53f1bfd2366
parent120843bd5f27dd3448d35ce6b113498cd3375605
net: sparx5: do not refer to skb after passing it on

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>
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c