Repository navigation
Commit a974dee
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: 3efb972 ("NFSv4: Refactor _nfs4_open_and_get_state..")
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>1 parent 8ccc869 commit a974dee
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2624 | 2624 | | |
2625 | 2625 | | |
2626 | 2626 | | |
| 2627 | + | |
2627 | 2628 | | |
2628 | 2629 | | |
2629 | 2630 | | |
| |||
2649 | 2650 | | |
2650 | 2651 | | |
2651 | 2652 | | |
2652 | | - | |
2653 | 2653 | | |
2654 | 2654 | | |
2655 | 2655 | | |
| |||
0 commit comments