commit | 6aeafd05eca9bc8ab6b03d7e56d09ffd18190f44 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@primarydata.com> | Tue Apr 25 11:26:53 2017 -0400 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Tue Apr 25 15:42:34 2017 -0400 |
tree | 4cdc02f84e2246efef3fe50dfb138e9cff9aeadd | |
parent | b3230e80a6d115d2eb50fe3f4794ad04d84766de [diff] |
pNFS: Fix use after free issues in pnfs_do_read() The assumption should be that if the caller returns PNFS_ATTEMPTED, then hdr has been consumed, and so we should not be testing hdr->task.tk_status. If the caller returns PNFS_TRY_AGAIN, then we need to recoalesce and free hdr. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>