]> 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)
commita9f2e703d6ce3e87f00921a9ec79f5143476338d
treeed2537da920f3e01d06d8fd340e0b214c5a9285a
parentb8681f492c8a6ef6764341adef9a8952be6c1849
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: b97dbf68921d ("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