diff options
| author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-10-25 15:05:46 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-26 09:20:00 -0700 |
| commit | 736b605c897204b8c05f15160f12e70c61b2e6e6 (patch) | |
| tree | 63819ed387418e20a1492c9142dd98e23e698c18 /kernel/stacktrace.c | |
| parent | 0014048e091da8bfdbe6f5a15d4045d3747d1335 (diff) | |
staging: comedi: me_daq: fix pointer dereference in me_detach()
As pointed out by Dan Carpenter, dev_private could be NULL when it
is checked before calling comedi_pci_disable(). The private data
variable 'plx_regbase_size' is only used to see if the pci device
has been enabled.
Remove that variable from the private data and just use the unused
dev->iobase variable to let the detach know that the pci device
is enabled.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/stacktrace.c')
0 files changed, 0 insertions, 0 deletions
