diff options
| author | Aristeu Rozanski <[email protected]> | 2013-12-05 10:37:56 -0500 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2013-12-21 13:26:57 +0100 |
| commit | 90ed4988b8c030d65b41b7d13140e9376dc6ec5a (patch) | |
| tree | 86cc49276f2f013355de12c9c18812582801d838 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | 8112c0cdf7b86f5917cdffcff4ffc477eaa62ed4 (diff) | |
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 <[email protected]>
Reviewed-by: mark gross <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions