summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2012-10-03 16:25:15 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-22 11:46:34 -0700
commitf4dd2367f3ad276fe49c89a522267ea5ccb6bf80 (patch)
tree81a52677385fddf1f0a4d44269efcd39ce262c16 /drivers/cpuidle
parent6681e63399926651cc29bcb9d92229b6f1cf1daa (diff)
downloadop-kernel-dev-f4dd2367f3ad276fe49c89a522267ea5ccb6bf80.zip
op-kernel-dev-f4dd2367f3ad276fe49c89a522267ea5ccb6bf80.tar.gz
staging: comedi: 8255_pci: fix possible NULL deref during detach
`pci_8255_detach()` will be called by the comedi core if `pci_8255_attach_pci()` returns an error. It currently assumes that both `board` (assigned from the return value of `comedi_board(dev)`) and `devpriv` (assigned from `dev->private`) are non-null, but they might be null, leading to a null pointer dereference. `pci_8255_detach()` doesn't need to do anything if either `board` or `devpriv` are null, so just return early in this case. Cc: <stable@vger.kernel.org> # 3.6.x Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud