diff options
author | David Howells <dhowells@redhat.com> | 2018-10-12 14:00:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-12 17:36:40 +0200 |
commit | f014ffb025c159fd51d19af8af0022a991aaa4f8 (patch) | |
tree | 110f6d403c8d19328d972c0ef271e759686a1f79 /arch/mips | |
parent | b40afc0066405e5ecfce73949b56ddd6bb65bd10 (diff) | |
download | talos-obmc-linux-f014ffb025c159fd51d19af8af0022a991aaa4f8.tar.gz talos-obmc-linux-f014ffb025c159fd51d19af8af0022a991aaa4f8.zip |
afs: Fix afs_server struct leak
Fix a leak of afs_server structs. The routine that installs them in the
various lookup lists and trees gets a ref on leaving the function, whether
it added the server or a server already exists. It shouldn't increment
the refcount if it added the server.
The effect of this that "rmmod kafs" will hang waiting for the leaked
server to become unused.
Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions