]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
can: ems_usb: don't touch skb after netif_rx()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 11 Jul 2015 19:16:08 +0000 (21:16 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 15 Jul 2015 07:04:28 +0000 (09:04 +0200)
commit43c021e8d6844c4b0f5cc9eda10d232e7b87a456
tree1b8d830fe0de08b0b986c9cccf58edf29f033414
parent296decb6931fca0bbc0bfb26865837d52e287599
can: ems_usb: don't touch skb after netif_rx()

There is no guarantee that the skb is in the same state after calling
net_receive_skb() or netif_rx(). It might be freed or reused. Not really
harmful as its a read access, except you turn on the proper debugging options
which catch a use after free.

Cc: Gerhard Uttenthaler <uttenthaler@ems-wuensche.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ems_usb.c