]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Aug 2020 17:41:45 +0000 (10:41 -0700)
commit4c5e3ca12e1a97ec7aa12aba4997dcc5a12ca6fe
tree7dfce1b77c1baeeba2a150c76d79d33d686067a0
parentae15511c5a7c051821f0f37608da6266fd811e0a
afs: Fix key ref leak in afs_put_operation()

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

Fixes: 511b1ded7178 ("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>
fs/afs/fs_operation.c