Re: [PATCH 03/13] powerpc/eeh: Fix use-after-release of EEH driver

2018-05-06 Thread Sam Bobroff
On Fri, May 04, 2018 at 12:56:55PM +1000, Michael Ellerman wrote: > Sam Bobroff writes: > > > 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()

Re: [PATCH 03/13] powerpc/eeh: Fix use-after-release of EEH driver

2018-05-03 Thread Michael Ellerman
Sam Bobroff writes: > 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,

[PATCH 03/13] powerpc/eeh: Fix use-after-release of EEH driver

2018-05-02 Thread Sam Bobroff
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