diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-03-26 05:47:41 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2021-04-14 05:10:32 +0300 |
commit | ca0e89406ba18e9ba98d28413b50469f631bb583 (patch) | |
tree | c344529687d835241080183ba95fdc48dea168dc /fs/ubifs/misc.h | |
parent | 3fdba9d27cc68a4d561da80bfecd4f73239b9a86 (diff) | |
download | linux-ca0e89406ba18e9ba98d28413b50469f631bb583.tar.xz |
remoteproc: qcom: wcss: 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.
This commit fix it by return 'ret' directly.
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 0af65b9b915e ("remoteproc: qcom: wcss: Add non pas wcss Q6 support for QCS404")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210326024741.841267-1-weiyongjun1@huawei.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'fs/ubifs/misc.h')
0 files changed, 0 insertions, 0 deletions