Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/[email protected] Cc: [email protected] Fixes: c1a3c36 ("proc: bootconfig: Add /proc/bootconfig to show boot config list") Acked-by: Masami Hiramatsu <[email protected]> Reported-by: Zeal Robot <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
- Loading branch information