aboutsummaryrefslogtreecommitdiffstats
path: root/lib/devmem_is_allowed.c
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2023-06-14 09:37:33 +0000
committerKees Cook <[email protected]>2023-06-14 18:52:10 +0000
commitd97038d5ec2062733c1e016caf9baaf68cf64ea1 (patch)
tree89c696e7b4c68787c04d1dd11dad059e358f588c /lib/devmem_is_allowed.c
parentpstore/ram: Convert to platform remove callback returning void (diff)
downloadkernel-d97038d5ec2062733c1e016caf9baaf68cf64ea1.tar.gz
kernel-d97038d5ec2062733c1e016caf9baaf68cf64ea1.zip
pstore/ram: 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: e163fdb3f7f8 ("pstore/ram: Regularize prz label allocation lifetime") Signed-off-by: Jiasheng Jiang <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/devmem_is_allowed.c')
0 files changed, 0 insertions, 0 deletions