diff options
author | Jean Delvare <[email protected]> | 2014-02-25 09:43:13 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2014-02-25 09:43:13 +0100 |
commit | 75135da0d68419ef8a925f4c1d5f63d8046e314d (patch) | |
tree | db9f21d3b0131bcd7c23c510852ad4143a44f1a4 /net/unix/af_unix.c | |
parent | c0f5eeed0f4cef4f05b74883a7160e7edde58b6a (diff) |
i7300_edac: Fix device reference count
pci_get_device() decrements the reference count of "from" (last
argument) so when we break off the loop successfully we have only one
device reference - and we don't know which device we have. If we want
a reference to each device, we must take them explicitly and let
the pci_get_device() walk complete to avoid duplicate references.
This is serious, as over-putting device references will cause
the device to eventually disappear. Without this fix, the kernel
crashes after a few insmod/rmmod cycles.
Tested on an Intel S7000FC4UR system with a 7300 chipset.
Signed-off-by: Jean Delvare <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Doug Thompson <[email protected]>
Cc: [email protected]
Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions