• David Howells's avatar
    afs: Fix afs_xattr_get_yfs() to not try freeing an error value · 773e0c40
    David Howells authored
    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>
    773e0c40
yfsclient.c 60.6 KB