summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2021-12-31 12:33:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-11 17:24:59 +0300
commit16e5cad6eca1e506c38c39dc256298643fa1852a (patch)
tree916d828c30d7df737522cafc2ec9fb7c06f9704f /net/mac80211
parenta7c2cae997db6d39a858f42d898d866058a7e035 (diff)
downloadlinux-16e5cad6eca1e506c38c39dc256298643fa1852a.tar.xz
RDMA/uverbs: Check for null return of kmalloc_array
commit 7694a7de22c53a312ea98960fcafc6ec62046531 upstream. 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/20211231093315.1917667-1-jiasheng@iscas.ac.cn Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/mac80211')
0 files changed, 0 insertions, 0 deletions