diff options
author | David Howells <dhowells@redhat.com> | 2019-05-12 09:31:23 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-05-15 18:35:53 +0200 |
commit | 773e0c40253443e0ce5491cb0e414b62f7cc45ed (patch) | |
tree | 48752e7b9ff1ec36c9baeadc7e4f11ebf16addf7 /fs/afs/cell.c | |
parent | afs: Fix incorrect error handling in afs_xattr_get_acl() (diff) | |
download | linux-773e0c40253443e0ce5491cb0e414b62f7cc45ed.tar.xz linux-773e0c40253443e0ce5491cb0e414b62f7cc45ed.zip |
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 '')
0 files changed, 0 insertions, 0 deletions