aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorAdam Thomson <[email protected]>2018-04-23 15:10:58 +0100
committerGreg Kroah-Hartman <[email protected]>2018-04-25 14:17:48 +0200
commit1ac3eef74a61f40639d0fa835fd968f825b09135 (patch)
treead1997c37414affaa46cc1ae97e7262085feebad /tools/perf/scripts/python/call-graph-from-sql.py
parent91dabc54073324006d5eaba483679c47b6eb93a8 (diff)
power: supply: Add error checking of psy desc during registration
Currently there's no error checking of this parameter in the registration function and it's blindly added to psy class and subsequently used as is. For example if this is NULL the call to psy_register_thermal() will try to dereference the pointer thus causing a kernel dump. This commit updates the registration code to add some basic checks on the desc pointer validity, name, and presence of properties. Signed-off-by: Adam Thomson <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions