diff options
| author | Einar Jón <[email protected]> | 2016-08-12 11:50:41 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2017-01-18 11:58:26 +0000 |
| commit | c97c52be78b8463ac5407f1cf1f22f8f6cf93a37 (patch) | |
| tree | bc1c38d0284615cba4e6d34781acbf320fe006a8 /drivers/net/xen-netback/interface.c | |
| parent | net: phy: dp83848: add DP83620 PHY support (diff) | |
| download | kernel-c97c52be78b8463ac5407f1cf1f22f8f6cf93a37.tar.gz kernel-c97c52be78b8463ac5407f1cf1f22f8f6cf93a37.zip | |
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 <[email protected]>
Cc: linux-stable <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
