WSL2-Linux-Kernel/drivers/rpmsg
Jiasheng Jiang abd740db89 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-19 12:22:48 +02:00
..
Kconfig rpmsg: Turn name service into a stand alone driver 2020-11-24 10:11:59 -06:00
Makefile rpmsg: Turn name service into a stand alone driver 2020-11-24 10:11:59 -06:00
mtk_rpmsg.c rpmsg: mtk_rpmsg: Fix circular locking dependency 2022-08-17 14:24:03 +02:00
qcom_glink_native.c rpmsg: glink: Add check for kstrdup 2023-09-19 12:22:48 +02:00
qcom_glink_native.h
qcom_glink_rpm.c
qcom_glink_smem.c rpmsg: glink: Set tail pointer to 0 at end of FIFO 2019-10-11 11:34:12 -07:00
qcom_glink_ssr.c rpmsg: glink: add include of header file 2021-01-05 22:22:40 -06:00
qcom_smd.c rpmsg: qcom: glink: replace strncpy() with strscpy_pad() 2022-10-12 09:53:28 +02:00
rpmsg_char.c rpmsg: char: Add mutex protection for rpmsg_eptdev_open() 2022-08-17 14:24:03 +02:00
rpmsg_core.c rpmsg: core: Clean up resources on announce_create failure. 2022-01-27 11:05:06 +01:00
rpmsg_internal.h rpmsg: Make rpmsg_{register|unregister}_device() public 2020-11-24 10:11:52 -06:00
rpmsg_ns.c rpmsg: Turn name service into a stand alone driver 2020-11-24 10:11:59 -06:00
virtio_rpmsg_bus.c rpmsg: virtio: Fix the unregistration of the device rpmsg_ctrl 2022-06-14 18:36:05 +02:00