linux_dsm_epyc7002/drivers/net/can/c_can
Einar Jón c97c52be78 can: c_can_pci: fix null-pointer-deref in c_can_start() - set device pointer
The priv->device pointer for c_can_pci is never set, but it is used
without a NULL check in c_can_start(). Setting it in c_can_pci_probe()
like c_can_plat_probe() prevents c_can_pci.ko from crashing, with and
without CONFIG_PM.

This might also cause the pm_runtime_*() functions in c_can.c to
actually be executed for c_can_pci devices - they are the only other
place where priv->device is used, but they all contain a null check.

Signed-off-by: Einar Jón <tolvupostur@gmail.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2017-01-18 12:58:26 +01:00
..
c_can_pci.c can: c_can_pci: fix null-pointer-deref in c_can_start() - set device pointer 2017-01-18 12:58:26 +01:00
c_can_platform.c can: c_can: use regmap_update_bits() to modify RAMINIT register 2015-01-15 16:58:00 +01:00
c_can.c can: c_can: Update D_CAN TX and RX functions to 32 bit - fix Altera Cyclone access 2016-06-20 09:32:40 +02:00
c_can.h can: c_can: Add support for START pulse in RAMINIT sequence 2014-11-17 12:19:27 +01:00
Kconfig can: c_can: remove obsolete STRICT_FRAME_ORDERING Kconfig option 2014-05-19 09:03:06 +02:00
Makefile net: can: use kbuild magic to inherit debug settings 2014-08-18 01:03:38 +02:00