Skip to content
Commit 773e0c40 authored by David Howells's avatar David Howells
Browse files

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: ae46578b

 ("afs: Get YFS ACLs and information through xattrs")
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent cc1dd5c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment