]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix key refcounting in file locking code
authorDavid Howells <dhowells@redhat.com>
Wed, 9 Jan 2019 17:23:54 +0000 (17:23 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 17 Jan 2019 15:17:28 +0000 (15:17 +0000)
commit6996ecded3b0a5d15823b206853962ca800cc91c
tree954ec6f394f6788e9f477da2b9944730a1a66750
parent37b63107182a33bed1afd16ff7de7055048da474
afs: Fix key refcounting in file locking code

Fix the refcounting of the authentication keys in the file locking code.
The vnode->lock_key member points to a key on which it expects to be
holding a ref, but it isn't always given an extra ref, however.

Fixes: 14f0e51ae40f ("afs: Fix file locking")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/flock.c
fs/afs/inode.c