summaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>2016-04-28 05:53:45 (GMT)
committerMichael Ellerman <mpe@ellerman.id.au>2016-05-11 11:54:03 (GMT)
commitb2ed059642875a699a195cb136b2e57e7e07cedf (patch)
treead8207f829dd1c14f473f78fdf67518271b303c6 /lib/vsprintf.c
parent9e44754755528f78dbc3a5e64cd48dadf4773777 (diff)
downloadlinux-b2ed059642875a699a195cb136b2e57e7e07cedf.tar.xz
powerpc/pseries: Add null property check to pseries_discover_pic()
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 straight on to the next node. Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Reviewed-by: Chris Smart <chris@distroguy.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions