Skip to content

Commit ba8e420

Browse files
dhowellstorvalds
authored andcommitted
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: e49c7b2 ("afs: Build an abstraction around an "operation" concept") Reported-by: Dave Botsch <[email protected]> Signed-off-by: David Howells <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7eac66d commit ba8e420

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/afs/fs_operation.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ int afs_put_operation(struct afs_operation *op)
235235
afs_end_cursor(&op->ac);
236236
afs_put_serverlist(op->net, op->server_list);
237237
afs_put_volume(op->net, op->volume, afs_volume_trace_put_put_op);
238+
key_put(op->key);
238239
kfree(op);
239240
return ret;
240241
}

0 commit comments

Comments
 (0)