mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
pstore/ram: Add check for kstrdup
[ Upstream commitd97038d5ec] Add check for the return value of kstrdup() and return the error if it fails in order to avoid NULL pointer dereference. Fixes:e163fdb3f7("pstore/ram: Regularize prz label allocation lifetime") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20230614093733.36048-1-jiasheng@iscas.ac.cn Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2672144b86
commit
f57ba91a46
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue