Skip to content
Commit b5c9ee82 authored by 蒋家盛's avatar 蒋家盛 Committed by Bjorn Andersson
Browse files

rpmsg: glink: Add check for kstrdup



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>
parent 5550201c
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