acrn-kernel/drivers/rpmsg
Jiasheng Jiang cae0787e40 rpmsg: glink: Add check for kstrdup
[ Upstream commit b5c9ee8296 ]

Add check for the return value of kstrdup() and return the error
if it fails in order to avoid NULL pointer dereference.

Fixes: b4f8e52b89 ("rpmsg: Introduce Qualcomm RPM glink driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230619030631.12361-1-jiasheng@iscas.ac.cn
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:58 +02:00
..
Kconfig
Makefile
mtk_rpmsg.c
qcom_glink_native.c
qcom_glink_native.h
qcom_glink_rpm.c
qcom_glink_smem.c
qcom_glink_ssr.c
qcom_smd.c
rpmsg_char.c
rpmsg_char.h
rpmsg_core.c
rpmsg_ctrl.c
rpmsg_internal.h
rpmsg_ns.c
virtio_rpmsg_bus.c