]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1a3bd354500ca373f146ed910b3558763af9739
treeed2537da920f3e01d06d8fd340e0b214c5a9285a
parentb9fe79f790a208bf8f7f645c6a4abce92a85c42d
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: 3d161ced5973 ("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