summaryrefslogtreecommitdiffstats
path: root/include/linux/edac.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2012-02-12 12:21:34 +0100
committerMauro Carvalho Chehab2012-03-21 19:22:49 +0100
commit0142877aa4e54dd9943fb727e9b386c36c8e3ab7 (patch)
treea417008857f8bb421052bf22b2ce03be49053f5e /include/linux/edac.h
parentedac: i5100 ack error detection register after each read (diff)
downloadkernel-qcow2-linux-0142877aa4e54dd9943fb727e9b386c36c8e3ab7.tar.gz
kernel-qcow2-linux-0142877aa4e54dd9943fb727e9b386c36c8e3ab7.tar.xz
kernel-qcow2-linux-0142877aa4e54dd9943fb727e9b386c36c8e3ab7.zip
i5400_edac: Avoid calling pci_put_device() twice
When i5400_edac driver is removed and re-loaded a few times, it causes an OOPS, as it is currently decrementing some PCI device usage two times. When called inside a loop, pci_get_device() will call pci_put_device(). That mangles the error count. In this specific case, it seems easier to just duplicate the call. Also fixes the error logic when pci_get_device fails. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/edac.h')
0 files changed, 0 insertions, 0 deletions