diff options
author | Trond Myklebust <[email protected]> | 2020-02-02 17:53:53 -0500 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2020-02-03 16:35:17 -0500 |
commit | 4b310319c6a8ce708f1033d57145e2aa027a883c (patch) | |
tree | 8c829779d65e9f3cda6bbbc85671e176df20f06f /lib/mpi/mpi-mul.c | |
parent | 7ccbddbe3e67591a02ddd20078d1241bd8fe79f3 (diff) |
NFS: Fix memory leaks and corruption in readdir
nfs_readdir_xdr_to_array() must not exit without having initialised
the array, so that the page cache deletion routines can safely
call nfs_readdir_clear_array().
Furthermore, we should ensure that if we exit nfs_readdir_filler()
with an error, we free up any page contents to prevent a leak
if we try to fill the page again.
Fixes: 11de3b11e08c ("NFS: Fix a memory leak in nfs_readdir")
Cc: [email protected] # v2.6.37+
Signed-off-by: Trond Myklebust <[email protected]>
Reviewed-by: Benjamin Coddington <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions