diff options
| author | Yang Yingliang <[email protected]> | 2022-04-08 11:22:46 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-04-11 10:45:34 +0100 |
| commit | b559edfaf3f3f3eb726f99f65b181ab310b3d4bc (patch) | |
| tree | 2cb918efdaa83fa9811e02e61d04f6abbca87a7c /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 750d019d700964e8140d7945b7df88f11b2b8c03 (diff) | |
net: ethernet: mtk_eth_soc: fix return value check in mtk_wed_add_hw()
If syscon_regmap_lookup_by_phandle() fails, it never return NULL pointer,
change the check to IS_ERR().
Fixes: 804775dfc288 ("net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions