]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: xgene-slimpro: Fix wrong pointer passed to PTR_ERR()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 1 Nov 2021 14:02:35 +0000 (14:02 +0000)
committerWolfram Sang <wsa@kernel.org>
Sat, 6 Nov 2021 21:09:37 +0000 (22:09 +0100)
commit3f5df883762f6549489de3a7cde9cf0bfd794437
tree22ee45d3b818e25cdc5036d63f2ae62f7603fc50
parenta5deabdb25c62df6c3ef8226835fb41b13f16fb4
i2c: xgene-slimpro: Fix wrong pointer passed to PTR_ERR()

PTR_ERR should access the value just tested by IS_ERR, otherwise
the wrong error code will be returned.

Fixes: 2035df5b3f3d ("mailbox: pcc: Use PCC mailbox channel pointer instead of standard")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-xgene-slimpro.c