diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index d6abca23406e5cb23acdb75f1a558915d4e92f99..9b819774f7f6753a6f11856fa4e17561bdb6d0e9 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -5602,7 +5602,7 @@ static int _nfs4_get_security_label(struct inode *inode, void *buf, return ret; if (!(fattr.valid & NFS_ATTR_FATTR_V4_SECURITY_LABEL)) return -ENOENT; - return 0; + return label.len; } static int nfs4_get_security_label(struct inode *inode, void *buf,