]> Git Repo - linux.git/commit
NFSv4: Fix memory and state leak in _nfs4_open_and_get_state
authorTrond Myklebust <[email protected]>
Wed, 8 Feb 2017 16:29:46 +0000 (11:29 -0500)
committerAnna Schumaker <[email protected]>
Wed, 8 Feb 2017 22:02:47 +0000 (17:02 -0500)
commita974deee477af89411e0f80456bfb344ac433c98
tree61016d00a0e22db3e3f662f54d603dbd079906c6
parent8ccc869169d0c59d288b20ec2b060317f87e08b4
NFSv4: Fix memory and state leak in _nfs4_open_and_get_state

If we exit because the file access check failed, we currently
leak the struct nfs4_state. We need to attach it to the
open context before returning.

Fixes: 3efb9722475e ("NFSv4: Refactor _nfs4_open_and_get_state..")
Cc: [email protected] # 3.10+
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
fs/nfs/nfs4proc.c
This page took 0.062612 seconds and 4 git commands to generate.