Re: [PATCH] powerpc/pseries: Add null property check to pseries_discover_pic()

2016-05-01 Thread Chris Smart
On Thu, Apr 28, 2016 at 03:53:45PM +1000, Suraj Jitindar Singh wrote: The return value of of_get_property() isn't checked before it is passed to the strstr() function, if it happens that the return value is null then this will result in a null pointer being dereferenced. Add a check to see if

[PATCH] powerpc/pseries: Add null property check to pseries_discover_pic()

2016-04-27 Thread Suraj Jitindar Singh
The return value of of_get_property() isn't checked before it is passed to the strstr() function, if it happens that the return value is null then this will result in a null pointer being dereferenced. Add a check to see if the return value of of_get_property() is null and if it is continue