diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2021-03-08 15:09:15 +0200 |
---|---|---|
committer | Georgi Djakov <georgi.djakov@linaro.org> | 2021-03-08 15:09:15 +0200 |
commit | 715ea61532e731c62392221238906704e63d75b6 (patch) | |
tree | 1d2dd3f001be56492b97f71eebba16a19f31ca1d /kernel/locking/rtmutex-debug.h | |
parent | 7c911f9de7abb89f46254d2fecb11dcb4a7a6c30 (diff) |
interconnect: core: fix error return code of icc_link_destroy()
When krealloc() fails and new is NULL, no error return code of
icc_link_destroy() is assigned.
To fix this bug, ret is assigned with -ENOMEM hen new is NULL.
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Link: https://lore.kernel.org/r/20210306132857.17020-1-baijiaju1990@gmail.com
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Diffstat (limited to 'kernel/locking/rtmutex-debug.h')
0 files changed, 0 insertions, 0 deletions