diff options
author | 2023-06-23 10:27:06 +0800 | |
---|---|---|
committer | 2023-10-12 09:47:01 -0700 | |
commit | a19d48f7c5d57c0f0405a7d4334d1d38fe9d3c1c (patch) | |
tree | 7eb86705f475fdfb2f5dbb6f0f5000ad470897ec /tools/perf/scripts/python/export-to-postgresql.py | |
parent | docs: pstore-blk.rst: fix typo, s/console/ftrace (diff) | |
download | wireguard-linux-a19d48f7c5d57c0f0405a7d4334d1d38fe9d3c1c.tar.xz wireguard-linux-a19d48f7c5d57c0f0405a7d4334d1d38fe9d3c1c.zip |
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.
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions