[Skiboot] [PATCH] core/pci: Fix mem-leak on fast-reboot

Andrew Donnellan andrew.donnellan at au1.ibm.com
Thu Jul 20 17:37:51 AEST 2017

On 20/07/17 17:36, Andrew Donnellan wrote:
> The other place in pci.c that calls free(pd->slot) null-checks it first,
> is it guaranteed that we'll have pd->slot here?

Actually, free(NULL) should be a nop, so it shouldn't matter.

Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>

Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited

More information about the Skiboot mailing list