Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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>

authored by

David Howells and committed by
Linus Torvalds
ba8e4207 7eac66d0

+1
+1
fs/afs/fs_operation.c
··· 235 235 afs_end_cursor(&op->ac); 236 236 afs_put_serverlist(op->net, op->server_list); 237 237 afs_put_volume(op->net, op->volume, afs_volume_trace_put_put_op); 238 + key_put(op->key); 238 239 kfree(op); 239 240 return ret; 240 241 }