afs: Fix a use after free in afs_xattr_get_acl()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 24 Aug 2020 08:58:12 +0000 (11:58 +0300)
committerDavid Howells <dhowells@redhat.com>
Tue, 27 Oct 2020 22:05:56 +0000 (22:05 +0000)
commit248c944e2159de4868bef558feea40214aaf8464
treeac60c074fc3ae494173904f93d9992fd070636fc
parentacc080d15dde820bd39eb55a04f9a09c7ef52e67
afs: Fix a use after free in afs_xattr_get_acl()

The "op" pointer is freed earlier when we call afs_put_operation().

Fixes: e49c7b2f6de7 ("afs: Build an abstraction around an "operation" concept")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Colin Ian King <colin.king@canonical.com>
fs/afs/xattr.c