Re: ipmi/powernv: Fix a minor bug

2015-07-09 Thread Neelesh Gupta
Hi Michael, On 07/08/2015 04:12 PM, Michael Ellerman wrote: On Wed, 2015-08-07 at 06:27:28 UTC, Neelesh Gupta wrote: If the OPAL call to receive the ipmi message fails, then we free up the smi message before returning. But, the driver still holds the reference to old smi message in the 'cur_msg

Re: ipmi/powernv: Fix a minor bug

2015-07-08 Thread Michael Ellerman
On Wed, 2015-08-07 at 06:27:28 UTC, Neelesh Gupta wrote: > If the OPAL call to receive the ipmi message fails, then we free up the smi > message before returning. But, the driver still holds the reference to old > smi message in the 'cur_msg' which is dangerous if the driver derefernces it > later

[PATCH] ipmi/powernv: Fix a minor bug

2015-07-07 Thread Neelesh Gupta
If the OPAL call to receive the ipmi message fails, then we free up the smi message before returning. But, the driver still holds the reference to old smi message in the 'cur_msg' which is dangerous if the driver derefernces it later and it will further block the subsequent ipmi operations. So, to