diff options
| author | Dan Carpenter <[email protected]> | 2023-07-31 10:42:32 +0300 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-08-01 14:38:17 -0700 |
| commit | ef45e8400f5bb66b03cc949f76c80e2a118447de (patch) | |
| tree | b67c1923464d75096699abda684f5a9ed9fa33c3 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | 13d2618b48f15966d1adfe1ff6a1985f5eef40ba (diff) | |
net: ll_temac: fix error checking of irq_of_parse_and_map()
Most kernel functions return negative error codes but some irq functions
return zero on error. In this code irq_of_parse_and_map(), returns zero
and platform_get_irq() returns negative error codes. We need to handle
both cases appropriately.
Fixes: 8425c41d1ef7 ("net: ll_temac: Extend support to non-device-tree platforms")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Esben Haabendal <[email protected]>
Reviewed-by: Yang Yingliang <[email protected]>
Reviewed-by: Harini Katakam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions