summaryrefslogtreecommitdiff
path: root/net/sunrpc/xprtrdma/frwr_ops.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-01-06 16:17:34 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-01-15 18:54:31 +0300
commite0b27d98bfed9cd9a22f96996bab24858646883d (patch)
treee6963ce458c9b8d23abf96acdc7a2d48188c543d /net/sunrpc/xprtrdma/frwr_ops.c
parent474c4f306eefbb21b67ebd1de802d005c7d7ecdc (diff)
downloadlinux-e0b27d98bfed9cd9a22f96996bab24858646883d.tar.xz
NFS: Add missing null check for failed allocation
Currently the allocation of buf is not being null checked and a null pointer dereference can occur when the memory allocation fails. Fix this by adding a check and returning -ENOMEM. Addresses-Coverity: ("Dereference null return") Fixes: 6d972518b821 ("NFS: Add fs_context support.") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/frwr_ops.c')
0 files changed, 0 insertions, 0 deletions