aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2022-01-31 16:27:40 +0000
committerGuenter Roeck <linux@roeck-us.net>2022-02-27 17:03:17 -0800
commit07320c91565658e117f2f86a190eec9bb64abeb6 (patch)
treea749d22d51267b70713a2167a660512f01d0c830 /tools/perf/scripts/python/event_analyzing_sample.py
parenthwmon: (powr1220) Add support for Lattice's POWR1014 power manager IC (diff)
downloadlinux-07320c91565658e117f2f86a190eec9bb64abeb6.tar.gz
linux-07320c91565658e117f2f86a190eec9bb64abeb6.zip
hwmon: Fix possible NULL pointer
The recent addition of the label attribute added some code that read the "label" device property, without checking first that "dev" was non-NULL. Fix this issue by first checking that "dev" is non-NULL. Fixes: ccd98cba6a18 ("hwmon: Add "label" attribute") Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions