afs: Fix incorrect error handling in afs_xattr_get_acl()
authorDavid Howells <dhowells@redhat.com>
Sun, 12 May 2019 07:05:10 +0000 (08:05 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 15 May 2019 16:35:53 +0000 (17:35 +0100)
commitcc1dd5c85cb70ebe09ccf1cc34f29af65442a10f
treeed2537da920f3e01d06d8fd340e0b214c5a9285a
parenta1b879eefc2b34cd3f17187ef6fc1cf3960e9518
afs: Fix incorrect error handling in afs_xattr_get_acl()

Fix incorrect error handling in afs_xattr_get_acl() where there appears to
be a redundant assignment before return, but in fact the return should be a
goto to the error handling at the end of the function.

Fixes: 260f082bae6d ("afs: Get an AFS3 ACL as an xattr")
Addresses-Coverity: ("Unused Value")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Joe Perches <joe@perches.com>
fs/afs/xattr.c