diff options
author | Sam Bobroff <sbobroff@linux.ibm.com> | 2018-05-25 13:11:30 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-06-03 20:43:38 +1000 |
commit | 46d4be41b987a6b2d25a2ebdd94cafb44e21d6c5 (patch) | |
tree | 13e0bbf0b3cf0d0cd47e59ebd18df94d5058d444 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 796b9f5b317a46d1b744f661c38a62b1280a6ab7 (diff) |
powerpc/eeh: Fix use-after-release of EEH driver
Correct two cases where eeh_pcid_get() is used to reference the driver's
module but the reference is dropped before the driver pointer is used.
In eeh_rmv_device() also refactor a little so that only two calls to
eeh_pcid_put() are needed, rather than three and the reference isn't
taken at all if it wasn't needed.
Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions