aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2014-03-13 10:32:37 +0800
committerMark Brown <[email protected]>2014-03-13 13:40:51 +0000
commited8eb250d7b097dbd888e46ad0d35a2cb1858221 (patch)
treef955d8f10d2daa01f0bd5fed49cdd6f74dbb40eb /tools/perf/scripts/python/Perf-Trace-Util
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
spi: sh-sci: Prevent NULL pointer dereference
If sp->info is NULL, we will hit NULL pointer dereference in probe() while setting bus_num and num_chipselect for master: sp->bitbang.master->bus_num = sp->info->bus_num; sp->bitbang.master->num_chipselect = sp->info->num_chipselect; Thus add NULL test for sp->info in probe() to prevent NULL pointer dereference. Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions