diff options
author | Jiasheng Jiang <[email protected]> | 2021-12-31 17:33:15 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2022-01-05 14:16:53 -0400 |
commit | 7694a7de22c53a312ea98960fcafc6ec62046531 (patch) | |
tree | c87578d9438dc2b1f653ac90ec6e0927f49f7c9c /scripts/gdb/linux/dmesg.py | |
parent | 4163cb3d1980383220ad7043002b930995dcba33 (diff) |
RDMA/uverbs: Check for null return of kmalloc_array
Because of the possible failure of the allocation, data might be NULL
pointer and will cause the dereference of the NULL pointer later.
Therefore, it might be better to check it and return -ENOMEM.
Fixes: 6884c6c4bd09 ("RDMA/verbs: Store the write/write_ex uapi entry points in the uverbs_api")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jiasheng Jiang <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions