afs: Fix key ref leak in afs_put_operation()
authorDavid Howells <dhowells@redhat.com>
Thu, 20 Aug 2020 13:37:12 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:49:16 +0000 (11:49 +0200)
commit19881ebab34ff8e0f75006df385a87d8c9e84a79
treef1a615dd76561ce669a9997c5f28acb682754104
parentf35bb8426115fca030a3b81fc8b32608a9fe904a
afs: Fix key ref leak in afs_put_operation()

[ Upstream commit ba8e42077bbe046a09bdb965dbfbf8c27594fe8f ]

The afs_put_operation() function needs to put the reference to the key
that's authenticating the operation.

Fixes: e49c7b2f6de7 ("afs: Build an abstraction around an "operation" concept")
Reported-by: Dave Botsch <botsch@cnf.cornell.edu>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/afs/fs_operation.c