diff options
author | Aristeu Rozanski <aris@redhat.com> | 2013-12-05 15:37:56 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-06 19:22:14 (GMT) |
commit | 7abfe210e2e74224400b95be11f96728b1347ed9 (patch) | |
tree | d9fb613ceb089039b164004d7ff9dbacb3fa7a53 /lib/rwsem.c | |
parent | 0e2e423fef687985cbc0ecf9a9de684fa2d2f61e (diff) | |
download | linux-fsl-qoriq-7abfe210e2e74224400b95be11f96728b1347ed9.tar.xz |
e752x_edac: Fix pci_dev usage count
commit 90ed4988b8c030d65b41b7d13140e9376dc6ec5a upstream.
In case the device 0, function 1 is not found using pci_get_device(),
pci_scan_single_device() will be used but, differently than
pci_get_device(), it allocates a pci_dev but doesn't does bump the usage
count on the pci_dev and after few module removals and loads the pci_dev
will be freed.
Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Reviewed-by: mark gross <mark.gross@intel.com>
Link: http://lkml.kernel.org/r/20131205153755.GL4545@redhat.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/rwsem.c')
0 files changed, 0 insertions, 0 deletions