]> 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)
commitfbae87e5ed011bc09a058af6cda7e7fc8dd1ce45
tree954ec6f394f6788e9f477da2b9944730a1a66750
parent6d941fce52746247f15d4aca6af140b1a070053e
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: 8825427296e1 ("afs: Fix file locking")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/flock.c
fs/afs/inode.c