Skip to content
Commit 2ffda63c authored by Sicong Huang's avatar Sicong Huang Committed by Chuck Lever
Browse files

NFSD: clean up alloc_init_deleg()



Modify the conditional statement for null pointer check in the function
'alloc_init_deleg' to make this function more robust and clear. Otherwise,
this function may have potential pointer dereference problem in the future,
when modifying or expanding the nfs4_delegation structure.

Signed-off-by: default avatarSicong Huang <huangsicong@iie.ac.cn>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 6939ace1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment