diff options
| author | Kunwu Chan <chentao@kylinos.cn> | 2024-01-15 17:43:30 +0800 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2025-11-11 14:39:25 +0530 |
| commit | 2617bd81ae54128e63e764c48935e572e3dee501 (patch) | |
| tree | 786f6fc9c4dda8593cc9148337bb0e2301dcd04f /rust/helpers/xarray.c | |
| parent | f90d28443b1f4dbbbdcfea1be5295f6903acc94c (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/xarray.c')
0 files changed, 0 insertions, 0 deletions
