diff options
| author | Yang Yingliang <yangyingliang@huawei.com> | 2022-06-28 17:02:48 +0300 |
|---|---|---|
| committer | Shawn Guo <shawnguo@kernel.org> | 2022-07-05 03:41:20 +0300 |
| commit | edf12b913abb69abce4cd6996398a4ce23e5b047 (patch) | |
| tree | 8cab5fe9decbcde2824d798ad576fdb8f7ddfd21 /include/linux/fpga/fpga-bridge.h | |
| parent | 1ec32a4f1c694b5424f6fab1a977d3e556c539bf (diff) | |
| download | linux-edf12b913abb69abce4cd6996398a4ce23e5b047.tar.xz | |
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 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions
