diff options
author | 2021-12-20 16:38:11 +0800 | |
---|---|---|
committer | 2022-01-03 18:30:21 +0100 | |
commit | 1c1348bf056dee665760a3bd1cd30b0be7554fc2 (patch) | |
tree | b3efab16ef53816dda65a6ac0683f4a04707f7b4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: bq25890: add POWER_SUPPLY_PROP_TEMP (diff) | |
download | linux-dev-1c1348bf056dee665760a3bd1cd30b0be7554fc2.tar.xz linux-dev-1c1348bf056dee665760a3bd1cd30b0be7554fc2.zip |
power: reset: mt6397: Check for null res pointer
The return value of platform_get_resource() needs to be checked.
To avoid use of error pointer in case that there is no suitable
resource.
Fixes: d28c74c10751 ("power: reset: add driver for mt6323 poweroff")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions