Commit 0be1c0e3 authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Lee Jones
Browse files

UPSTREAM: pstore/platform: 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.

Bug: 254441685
Fixes: 563ca40d ("pstore/platform: Switch pstore_info::name to const")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230623022706.32125-1-jiasheng@iscas.ac.cn


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
(cherry picked from commit a19d48f7)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ica7b8b5954b3a1783855a37dcf1723fcdd793e93
parent 2330bf11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment