Skip to content
Commit cae0787e authored by 蒋家盛's avatar 蒋家盛 Committed by Greg Kroah-Hartman
Browse files

rpmsg: glink: Add check for kstrdup



[ Upstream commit b5c9ee82 ]

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

Fixes: b4f8e52b ("rpmsg: Introduce Qualcomm RPM glink driver")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230619030631.12361-1-jiasheng@iscas.ac.cn


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f309ac8a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment