aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorYunjian Wang <wangyunjian@huawei.com>2021-04-23 17:42:58 +0800
committerChuck Lever <chuck.lever@oracle.com>2021-04-23 10:43:05 -0400
commitb9f83ffaa0c096b4c832a43964fe6bff3acffe10 (patch)
treef1a9a914fdf8921546748669858823868db60098 /fs/locks.c
parentSUNRPC: fix ternary sign expansion bug in tracing (diff)
downloadlinux-dev-b9f83ffaa0c096b4c832a43964fe6bff3acffe10.tar.xz
linux-dev-b9f83ffaa0c096b4c832a43964fe6bff3acffe10.zip
SUNRPC: Fix null pointer dereference in svc_rqst_free()
When alloc_pages_node() returns null in svc_rqst_alloc(), the null rq_scratch_page pointer will be dereferenced when calling put_page() in svc_rqst_free(). Fix it by adding a null check. Addresses-Coverity: ("Dereference after null check") Fixes: 5191955d6fc6 ("SUNRPC: Prepare for xdr_stream-style decoding on the server-side") Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions