kernel_samsung_a53x/fs/pstore
Jiasheng Jiang e087424fc6 pstore/platform: Add check for kstrdup
[ Upstream commit a19d48f7c5d57c0f0405a7d4334d1d38fe9d3c1c ]

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

Fixes: 563ca40ddf40 ("pstore/platform: Switch pstore_info::name to const")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230623022706.32125-1-jiasheng@iscas.ac.cn
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:42:47 +01:00
..
blk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ftrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
internal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
platform.c pstore/platform: Add check for kstrdup 2024-11-18 11:42:47 +01:00
pmsg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ram.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ram_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zone.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00