diff options
| author | Gustavo A. R. Silva <[email protected]> | 2019-03-18 11:14:39 -0500 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2019-04-05 16:03:44 +0200 |
| commit | c3422ad5f84a66739ec6a37251ca27638c85b6be (patch) | |
| tree | 5ccf10e2bcbfd4452b0a01ec2346cda0effdaa13 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | f0459fe14713081294b18bf1243f8de459814131 (diff) | |
power: supply: axp288_charger: 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 reporting any errors
and returning *pirq*
Addresses-Coverity-ID: 1443940 ("Improper use of negative value")
Fixes: 843735b788a4 ("power: axp288_charger: axp288 charger driver")
Cc: [email protected]
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions