Commit f58bab6f authored by Jeff Layton's avatar Jeff Layton Committed by Chuck Lever
Browse files

nfsd: ensure that nfsd4_fattr_args.context is zeroed out



If nfsd4_encode_fattr4 ends up doing a "goto out" before we get to
checking for the security label, then args.context will be set to
uninitialized junk on the stack, which we'll then try to free.
Initialize it early.

Fixes: f59388a5 ("NFSD: Add nfsd4_encode_fattr4_sec_label()")
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 91da337e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment