diff options
author | Wei Yongjun <[email protected]> | 2021-03-05 03:49:27 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-03-10 09:36:13 +0100 |
commit | 414c20df7d401bcf1cb6c13d2dd944fb53ae4acf (patch) | |
tree | ed26bc12a2cfc1a34aea05be145794140359d28b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b1d25e6ee57c2605845595b6c61340d734253eb3 (diff) |
USB: gadget: udc: s3c2410_udc: fix return value check in s3c2410_udc_probe()
In case of error, the function devm_platform_ioremap_resource()
returns ERR_PTR() and never returns NULL. The NULL test in the
return value check should be replaced with IS_ERR().
Fixes: 188db4435ac6 ("usb: gadget: s3c: use platform resources")
Cc: stable <[email protected]>
Reported-by: Hulk Robot <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions