linux-stable/drivers/interconnect
Jia-Ju Bai 9b57ecb01b interconnect: core: fix error return code of icc_link_destroy()
[ Upstream commit 715ea61532 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-16 11:43:19 +02:00
..
imx interconnect: imx8mq: Use icc_sync_state 2021-01-27 11:55:29 +01:00
qcom interconnect: qcom: fix rpmh link failures 2021-01-17 14:17:01 +01:00
bulk.c interconnect: Add bulk API helpers 2020-09-08 16:28:49 +03:00
core.c interconnect: core: fix error return code of icc_link_destroy() 2021-04-16 11:43:19 +02:00
internal.h interconnect: Add helpers for enabling/disabling a path 2020-05-10 18:30:37 +03:00
Kconfig Merge branch 'icc-get-by-index' into icc-next 2020-05-15 10:46:18 +03:00
Makefile interconnect: Add bulk API helpers 2020-09-08 16:28:49 +03:00
trace.h interconnect: Add basic tracepoints 2019-12-16 09:25:23 +02:00