[Skiboot] [PATCH 2/4] core/pcie-slots: Fix coverity possible NULL dereference

Stewart Smith stewart at linux.vnet.ibm.com
Tue Nov 14 17:47:48 AEDT 2017

Cyril Bur <cyril.bur at au1.ibm.com> writes:
> Coverity has found a senario where there could be a NULL dereference,
> it is likely that in practice we wouldn't hit this. Coverity does point
> out that all other callers of pcie_slot_create() do check for the NULL
> return, as such it makes sense to add a check.
> Fixes: CID 173756
> Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
> ---
>  core/pcie-slot.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

This one (I'm taking patches 2 and 3 now)
merged to master as of a2f15d75c20f9a5912809094f52d532b5c7cff88

Stewart Smith
OPAL Architect, IBM.

More information about the Skiboot mailing list