aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2019-03-18 16:18:30 -0500
committerGreg Kroah-Hartman <[email protected]>2019-03-19 14:57:31 +0100
commite82adc1074a7356f1158233551df9e86b7ebfb82 (patch)
treefb5230b97ff8b7ecdca46e87cc8fca452d8df878 /tools/perf/scripts/python/export-to-postgresql.py
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff)
usb: typec: Fix unchecked return value
Currently there is no check on platform_get_irq() return value in case it fails, hence never actually reporting any errors and causing unexpected behavior when using such value as argument for function regmap_irq_get_virq(). Fix this by adding a proper check, a message error and return *irq* in case platform_get_irq() fails. Addresses-Coverity-ID: 1443899 ("Improper use of negative value") Fixes: d2061f9cc32d ("usb: typec: add driver for Intel Whiskey Cove PMIC USB Type-C PHY") Cc: [email protected] Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Acked-by: Heikki Krogerus <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions