From: Aristeu Rozanski Date: Thu, 5 Dec 2013 15:37:56 +0000 (-0500) Subject: e752x_edac: Fix pci_dev usage count X-Git-Tag: v3.14-rc1~181^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90ed4988b8c030d65b41b7d13140e9376dc6ec5a;p=pandora-kernel.git e752x_edac: Fix pci_dev usage count 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 Reviewed-by: mark gross Link: http://lkml.kernel.org/r/20131205153755.GL4545@redhat.com Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed