diff options
author | Lv Ruyi <lv.ruyi@zte.com.cn> | 2022-03-29 12:40:04 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-04-02 14:40:09 +0200 |
commit | bed5b60bf67ccd8957b8c0558fead30c4a3f5d3f (patch) | |
tree | c446bf231deeaa6a80c29fe4fe3dbfbe0ab37090 /fs/readdir.c | |
parent | tracing: Rename the staging files for trace_events (diff) | |
download | linux-bed5b60bf67ccd8957b8c0558fead30c4a3f5d3f.tar.xz linux-bed5b60bf67ccd8957b8c0558fead30c4a3f5d3f.zip |
proc: bootconfig: Add null pointer check
kzalloc is a memory allocation function which can return NULL when some
internal memory errors happen. It is safer to add null pointer check.
Link: https://lkml.kernel.org/r/20220329104004.2376879-1-lv.ruyi@zte.com.cn
Cc: stable@vger.kernel.org
Fixes: c1a3c36017d4 ("proc: bootconfig: Add /proc/bootconfig to show boot config list")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'fs/readdir.c')
0 files changed, 0 insertions, 0 deletions