aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2010-06-09 20:31:13 +0000
committerJesse Barnes <[email protected]>2010-06-11 20:10:21 +0000
commita7ef7d1f5e898984c479e8c41ca702141bbadc78 (patch)
treefa742fbb39071799d02652cf5cbbca3f25af5724 /fs/proc/array.c
parentRevert "PCI: create function symlinks in /sys/bus/pci/slots/N/" (diff)
downloadkernel-a7ef7d1f5e898984c479e8c41ca702141bbadc78.tar.gz
kernel-a7ef7d1f5e898984c479e8c41ca702141bbadc78.zip
PCI: hotplug/cpqphp, fix NULL dereference
There are devices out there which are PCI Hot-plug controllers with compaq PCI IDs, but are not bridges, hence have pdev->subordinate NULL. But cpqphp expects the pointer to be non-NULL. Add a check to the probe function to avoid oopses like: BUG: unable to handle kernel NULL pointer dereference at 00000050 IP: [<f82e3c41>] cpqhpc_probe+0x951/0x1120 [cpqphp] *pdpt = 0000000033779001 *pde = 0000000000000000 ... The device here was: 00:0b.0 PCI Hot-plug controller [0804]: Compaq Computer Corporation PCI Hotplug Controller [0e11:a0f7] (rev 11) Subsystem: Compaq Computer Corporation Device [0e11:a2f8] Signed-off-by: Jiri Slaby <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Jesse Barnes <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions