aboutsummaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorEinar Jón <tolvupostur@gmail.com>2016-08-12 13:50:41 +0200
committerMister Oyster <oysterized@gmail.com>2017-07-04 11:51:04 +0200
commit6780847d637b3c02c5d87c1b3186aba2c86af06c (patch)
tree3fbde640e9f0f3d17ea75468b6bf896b09dc618d /kernel/sysctl.c
parentd8332b94283ee5e7a329555b4f91054f23036902 (diff)
can: c_can_pci: fix null-pointer-deref in c_can_start() - set device pointer
commit c97c52be78b8463ac5407f1cf1f22f8f6cf93a37 upstream. 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> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions