Re: powerpc: Add missing error check to prom_find_boot_cpu()

2017-01-27 Thread Darren Stevens
Hello Michael On 27/01/2017, Michael Ellerman wrote: > On Mon, 2017-01-23 at 19:42:54 UTC, Darren Stevens wrote: > Applied to powerpc fixes, thanks. > > https://git.kernel.org/powerpc/c/af2b7fa17eb92e52b65f96604448ff Thanks, I was going to ask about backporting to 4.9 as it's a LTS now, but I see

Re: powerpc: Add missing error check to prom_find_boot_cpu()

2017-01-26 Thread Michael Ellerman
On Mon, 2017-01-23 at 19:42:54 UTC, Darren Stevens wrote: > prom_init.c calls 'instance-to-package' twice, but the return > is not checked during prom_find_boot_cpu(). The result is then > passed to prom_getprop, which could be PROM_ERROR. > Add a return check to prevent this. > > This was found o

[PATCH] powerpc: Add missing error check to prom_find_boot_cpu()

2017-01-23 Thread Darren Stevens
prom_init.c calls 'instance-to-package' twice, but the return is not checked during prom_find_boot_cpu(). The result is then passed to prom_getprop, which could be PROM_ERROR. Add a return check to prevent this. This was found on a pasemi system, where CFE doesn't have a working 'instance-to packa