summaryrefslogtreecommitdiff
path: root/rust/helpers/processor.c
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-01-15 17:43:30 +0800
committerMadhavan Srinivasan <maddy@linux.ibm.com>2025-11-11 14:39:25 +0530
commit2617bd81ae54128e63e764c48935e572e3dee501 (patch)
tree786f6fc9c4dda8593cc9148337bb0e2301dcd04f /rust/helpers/processor.c
parentf90d28443b1f4dbbbdcfea1be5295f6903acc94c (diff)
powerpc/83xx: Add a null pointer check to mcu_gpiochip_add
kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20240115094330.33014-1-chentao@kylinos.cn
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions