[Skiboot] [PATCH] platforms/ibm-fsp: Fix condition for valid slot

Stewart Smith stewart at linux.vnet.ibm.com
Tue Jun 21 17:25:11 AEST 2016


Gavin Shan <gwshan at linux.vnet.ibm.com> writes:
> In firenze_pci_slot_init(), i2c_alloc_req() can return NULL though
> it's very rare. We don't cover the case. If NULL I2C request returned
> from the function, the I2C dependent power management won't be used.
>
> This checks if i2c_alloc_req() returns valid I2C request or not.
>
> Suggested-by: Stewart Smith <stewart at linux.vnet.ibm.com>
> Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
> ---
>  platforms/ibm-fsp/firenze-pci.c | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)

Thanks! Merged to master as of 5f25590fd430265e69190aaa50f019e8dadad293

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list