diff options
author | Sergei Shtylyov <[email protected]> | 2017-08-06 00:14:28 +0300 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2017-08-23 16:49:22 +0200 |
commit | 892dd1831392adbdf4e55d0c284c3aea6ba4d855 (patch) | |
tree | 01acd9f6c21a8739620f0cce8c2280a6e180e0da /tools/perf/scripts/python/check-perf-trace.py | |
parent | fd213b5bae800dc00a2930dcd07f63ab9bbff3f9 (diff) |
mtd: nand: atmel: fix of_irq_get() error check
of_irq_get() may return 0 as well as negative error number on failure,
while the driver only checks for the negative values. The driver would
then call devm_request_irq() for IRQ0 in its probe method and never get
a valid interrupt.
Check for 'nc->irq <= 0' instead and return -ENXIO from the driver's probe
if of_irq_get() returned 0.
Fixes: f88fc122cc34 ("mtd: nand: Cleanup/rework the atmel_nand driver")
Signed-off-by: Sergei Shtylyov <[email protected]>
Acked-by: Wenyou Yang <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions