linux/drivers/net/can/sja1000
Stephane Grosjean 8a478b1a7f can: peak_pci: prevent use after free at netdev removal
commit 0b5a958cf4 upstream.

As remarked by Christopher R. Baker in his post at

http://marc.info/?l=linux-can&m=139707295706465&w=2

there's a possibility for an use after free condition at device removal.

This simplified patch introduces an additional variable to prevent the issue.
Thanks for catching this.

Reported-by: Christopher R. Baker <cbaker@rec.ri.cmu.edu>
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-30 20:11:51 -07:00
..
Kconfig can: sja1000: limit PEAK PCAN-PC Card to HAS_IOPORT 2013-03-27 14:51:49 +01:00
Makefile can: sja1000: add support for PEAK-System PCMCIA card 2012-03-03 17:40:46 +01:00
ems_pci.c can: Fix FSF address in file headers 2013-12-17 11:47:21 +01:00
ems_pcmcia.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2013-05-01 14:08:52 -07:00
kvaser_pci.c can: Fix FSF address in file headers 2013-12-17 11:47:21 +01:00
peak_pci.c can: peak_pci: prevent use after free at netdev removal 2014-06-30 20:11:51 -07:00
peak_pcmcia.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2013-05-01 14:08:52 -07:00
plx_pci.c can: sja1000: add support for Elcus CAN200PCI 2014-01-11 19:43:16 +01:00
sja1000.c can: sja1000: fix {pre,post}_irq() handling and IRQ handler return value 2013-11-25 21:16:53 +01:00
sja1000.h can: sja1000: use common prefix for all sja1000 defines 2013-04-16 12:39:14 +02:00
sja1000_isa.c can: Fix FSF address in file headers 2013-12-17 11:47:21 +01:00
sja1000_of_platform.c can: Fix FSF address in file headers 2013-12-17 11:47:21 +01:00
sja1000_platform.c can: Fix FSF address in file headers 2013-12-17 11:47:21 +01:00
tscan1.c can: remove __dev* attributes 2012-12-03 11:16:11 -08:00