diff options
| author | 2022-06-28 22:02:48 +0800 | |
|---|---|---|
| committer | 2022-07-05 08:41:20 +0800 | |
| commit | edf12b913abb69abce4cd6996398a4ce23e5b047 (patch) | |
| tree | 8cab5fe9decbcde2824d798ad576fdb8f7ddfd21 /tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com | |
| parent | soc: imx: imx8m-blk-ctrl: Make error prints useful (diff) | |
| download | linux-dev-edf12b913abb69abce4cd6996398a4ce23e5b047.tar.xz linux-dev-edf12b913abb69abce4cd6996398a4ce23e5b047.zip | |
soc: fsl: guts: fix return value check in fsl_guts_init()
In case of error, of_iomap() returns NULL pointer not ERR_PTR().
The IS_ERR() test in the return value check should be replaced
with NULL test and return -ENOMEM as error value.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
