mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
The malloc() function may return NULL when it fails, which may cause null pointer deference in add_cmdname(), add Null check for return value of malloc(). Found by our static analysis tool. Signed-off-by: Chenyuan Mi <[email protected]> Acked-by: Ian Rogers <[email protected]> Cc: Leo Yan <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>