aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorPan Bian <[email protected]>2017-11-13 00:01:20 +0800
committerJonathan Cameron <[email protected]>2017-12-02 11:15:13 +0000
commit81b039ec36a41a5451e1e36f05bb055eceab1dc8 (patch)
tree37244f40cbd7b4ed0874b772118586e5fdcb7027 /tools/perf/scripts/python/failed-syscalls-by-pid.py
parent0590cdfead8cd6319cc58b5dbe8ab9fbaabae131 (diff)
iio: adc: cpcap: fix incorrect validation
Function platform_get_irq_byname() returns a negative error code on failure, and a zero or positive number on success. However, in function cpcap_adc_probe(), positive IRQ numbers are also taken as error cases. Use "if (ddata->irq < 0)" instead of "if (!ddata->irq)" to validate the return value of platform_get_irq_byname(). Signed-off-by: Pan Bian <[email protected]> Fixes: 25ec249632d50 ("iio: adc: cpcap: Add minimal support for CPCAP PMIC ADC") Reviewed-by: Sebastian Reichel <[email protected]> Acked-by: Tony Lindgren <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions