diff options
author | David Howells <dhowells@redhat.com> | 2018-02-06 12:26:27 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-02-06 17:22:03 +0300 |
commit | e44150157f42219fa5c074588efdb31ccfb197fc (patch) | |
tree | 892598b818e0f062821a55a4b914aeecbd9d51f5 /fs/afs/addr_list.c | |
parent | e237f98a9c134c3d600353f21e07db915516875b (diff) | |
download | linux-e44150157f42219fa5c074588efdb31ccfb197fc.tar.xz |
afs: Add missing afs_put_cell()
afs_alloc_volume() needs to release the cell ref it obtained in the case of
an error. Fix this by adding an afs_put_cell() call into the error path.
This can triggered when a lookup for a cell in a dynamic root or an
autocell mount returns an error whilst trying to look up the server (such
as ENOMEDIUM). This results in an assertion failure oops when the module
is unloaded due to outstanding refs on a cell record.
Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: stable@vger.kernel.org
Diffstat (limited to 'fs/afs/addr_list.c')
0 files changed, 0 insertions, 0 deletions