diff options
| author | Tang Bin <[email protected]> | 2020-05-20 09:55:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-05-22 00:26:54 +0000 |
| commit | a7654211d0ffeaa8eb0545ea00f8445242cbce05 (patch) | |
| tree | 1035541121ddc67b58de30c1f632a07f8926d89a /tools/perf/scripts/python | |
| parent | net: don't return invalid table id error when we fall back to PF_UNSPEC (diff) | |
| download | kernel-a7654211d0ffeaa8eb0545ea00f8445242cbce05.tar.gz kernel-a7654211d0ffeaa8eb0545ea00f8445242cbce05.zip | |
net: sgi: ioc3-eth: Fix return value check in ioc3eth_probe()
In the function devm_platform_ioremap_resource(), if get resource
failed, the return value is ERR_PTR() not NULL. Thus it must be
replaced by IS_ERR(), or else it may result in crashes if a critical
error path is encountered.
Fixes: 0ce5ebd24d25 ("mfd: ioc3: Add driver for SGI IOC3 chip")
Signed-off-by: Zhang Shengju <[email protected]>
Signed-off-by: Tang Bin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
