mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
NFSv4.2: Always decode the security label
[ Upstream commitc8a62f4402] If the server returns a reply that includes a security label, then we must decode it whether or not we can store the results. Fixes:1e2f67da89("NFS: Remove the nfs4_label argument from decode_getattr_*() functions") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
860b951e92
commit
4711196ada
|
|
@ -4755,12 +4755,10 @@ static int decode_getfattr_attrs(struct xdr_stream *xdr, uint32_t *bitmap,
|
|||
if (status < 0)
|
||||
goto xdr_error;
|
||||
|
||||
if (fattr->label) {
|
||||
status = decode_attr_security_label(xdr, bitmap, fattr->label);
|
||||
if (status < 0)
|
||||
goto xdr_error;
|
||||
fattr->valid |= status;
|
||||
}
|
||||
status = decode_attr_security_label(xdr, bitmap, fattr->label);
|
||||
if (status < 0)
|
||||
goto xdr_error;
|
||||
fattr->valid |= status;
|
||||
|
||||
xdr_error:
|
||||
dprintk("%s: xdr returned %d\n", __func__, -status);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user