Commit c0dfceed authored by Wei Yongjun's avatar Wei Yongjun Committed by Huisong
Browse files

i2c: xgene-slimpro: Fix wrong pointer passed to PTR_ERR()

mainline inclusion
from mainline-v5.16-rc1
commit c80be257
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6Z91B
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.3-rc2&id=c80be257a4cd0f72c083e6056ff0ce2da871e9dc



--------------------------------

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

Fixes: 7b6da7fe ("mailbox: pcc: Use PCC mailbox channel pointer instead of standard")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 0ace3001
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment