diff options
author | 2016-09-13 20:32:44 -0700 | |
---|---|---|
committer | 2016-09-27 12:30:37 +0200 | |
commit | 60ca5e0d280b1a51df55c5fc2e5bfe010b344c5a (patch) | |
tree | 3389804982b1d415687846bb67308b646cf5320b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | sysfs print name of undiscoverable attribute group (diff) | |
download | linux-dev-60ca5e0d280b1a51df55c5fc2e5bfe010b344c5a.tar.xz linux-dev-60ca5e0d280b1a51df55c5fc2e5bfe010b344c5a.zip |
driver-core: platform: Catch errors from calls to irq_get_irq_data
irq_get_irq_data() can return NULL, which results in a nasty crash.
Check its return value before passing it on to irqd_set_trigger_type().
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions