Commit 23fecda7 authored by Wei Yongjun's avatar Wei Yongjun Committed by Junhao He
Browse files

coresight: trbe: Fix return value check in arm_trbe_register_coresight_cpu()

mainline inclusion
from mainline-v5.13-rc1
commit 68d400c0
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BC14
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=68d400c079978f649e7f63aba966d219743edd64



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

In case of error, the function devm_kasprintf() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value
check should be replaced with NULL test.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210409094901.1903622-1-weiyongjun1@huawei.com


Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarJunhao He <hejunhao3@huawei.com>
parent b81cf416
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment