Commit c296cfe2 authored by Fred Isaman's avatar Fred Isaman Committed by Trond Myklebust

pNFS: Fix NULL dereference in pnfs_generic_alloc_ds_commits

Signed-off-by: default avatarFred Isaman <fred.isaman@gmail.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 5f011483
...@@ -221,7 +221,7 @@ pnfs_generic_alloc_ds_commits(struct nfs_commit_info *cinfo, ...@@ -221,7 +221,7 @@ pnfs_generic_alloc_ds_commits(struct nfs_commit_info *cinfo,
* If the layout segment is invalid, then let * If the layout segment is invalid, then let
* pnfs_generic_retry_commit() clean up the bucket. * pnfs_generic_retry_commit() clean up the bucket.
*/ */
if (!pnfs_is_valid_lseg(bucket->clseg) && if (bucket->clseg && !pnfs_is_valid_lseg(bucket->clseg) &&
!test_bit(NFS_LSEG_LAYOUTRETURN, &bucket->clseg->pls_flags)) !test_bit(NFS_LSEG_LAYOUTRETURN, &bucket->clseg->pls_flags))
break; break;
data = nfs_commitdata_alloc(false); data = nfs_commitdata_alloc(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment