aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorKunwu Chan <[email protected]>2023-12-08 16:59:37 +0800
committerMichael Ellerman <[email protected]>2023-12-13 22:18:59 +1100
commit9a260f2dd827bbc82cc60eb4f4d8c22707d80742 (patch)
treeb22d0581a7742ea36cdbd958912d83b033f7b70f /lib/test_fortify/write_overflow-strncpy-src.c
parentf46c8a75263f97bda13c739ba1c90aced0d3b071 (diff)
powerpc/powernv: Add a null pointer check to scom_debug_init_one()
kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Add a null pointer check, and release 'ent' to avoid memory leaks. Fixes: bfd2f0d49aef ("powerpc/powernv: Get rid of old scom_controller abstraction") Signed-off-by: Kunwu Chan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions