]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfca824861e059f00ab0d858b1a6383d85a67b3a5
treeac60c074fc3ae494173904f93d9992fd070636fc
parent534efdfab86c4012be9ecf0cf9e9d9d60bdfacb5
afs: Fix a use after free in afs_xattr_get_acl()

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

Fixes: 590fdde7416c ("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