diff options
author | Xin Xiong <xiongx18@fudan.edu.cn> | 2022-01-25 16:10:45 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-02-26 02:50:12 +0300 |
commit | b7f114edd54326f730a754547e7cfb197b5bc132 (patch) | |
tree | 57ec0fd2a36c1de2becf1b6973d43812f1a27f07 /drivers/regulator/max8649.c | |
parent | 8786fde8421ce755a842051f9528674a1b1f0b9a (diff) | |
download | linux-b7f114edd54326f730a754547e7cfb197b5bc132.tar.xz |
NFSv4.2: fix reference count leaks in _nfs42_proc_copy_notify()
[You don't often get email from xiongx18@fudan.edu.cn. Learn why this is important at http://aka.ms/LearnAboutSenderIdentification.]
The reference counting issue happens in two error paths in the
function _nfs42_proc_copy_notify(). In both error paths, the function
simply returns the error code and forgets to balance the refcount of
object `ctx`, bumped by get_nfs_open_context() earlier, which may
cause refcount leaks.
Fix it by balancing refcount of the `ctx` object before the function
returns in both error paths.
Signed-off-by: Xin Xiong <xiongx18@fudan.edu.cn>
Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'drivers/regulator/max8649.c')
0 files changed, 0 insertions, 0 deletions