]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: Fix potential leaks in sunrpc_cache_unhash()
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 18:40:34 +0000 (13:40 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 22 Jan 2020 21:25:41 +0000 (16:25 -0500)
commitc954cdbe586140cee7ff15e88336fcac073d4781
tree162e26f77dc3c72ef1e10c6a5799916b7fe74188
parent5660c3929eedadfdc13529c9310574b38f271e8b
sunrpc: Fix potential leaks in sunrpc_cache_unhash()

When we unhash the cache entry, we need to handle any pending upcalls
by calling cache_fresh_unlocked().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/cache.c