diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2023-06-19 06:06:31 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-07-16 00:59:30 +0300 |
commit | b5c9ee8296a3760760c7b5d2e305f91412adc795 (patch) | |
tree | d55e444f7f3ec55250d9c2df58dba6bf546a2a62 /ipc/msgutil.c | |
parent | 5550201c0fe26a76c53983bd36a58d4c4395ec22 (diff) | |
download | linux-b5c9ee8296a3760760c7b5d2e305f91412adc795.tar.xz |
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: b4f8e52b89f6 ("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>
Diffstat (limited to 'ipc/msgutil.c')
0 files changed, 0 insertions, 0 deletions