summaryrefslogtreecommitdiffstats
path: root/fs/nsfs.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-05-12 08:31:23 +0100
committerDavid Howells <dhowells@redhat.com>2019-05-15 17:35:53 +0100
commit773e0c40253443e0ce5491cb0e414b62f7cc45ed (patch)
tree48752e7b9ff1ec36c9baeadc7e4f11ebf16addf7 /fs/nsfs.c
parentcc1dd5c85cb70ebe09ccf1cc34f29af65442a10f (diff)
downloadlinux-773e0c40253443e0ce5491cb0e414b62f7cc45ed.tar.bz2
afs: Fix afs_xattr_get_yfs() to not try freeing an error value
afs_xattr_get_yfs() tries to free yacl, which may hold an error value (say if yfs_fs_fetch_opaque_acl() failed and returned an error). Fix this by allocating yacl up front (since it's a fixed-length struct, unlike afs_acl) and passing it in to the RPC function. This also allows the flags to be placed in the object rather than passing them through to the RPC function. Fixes: ae46578b963f ("afs: Get YFS ACLs and information through xattrs") Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/nsfs.c')
0 files changed, 0 insertions, 0 deletions