Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

pNFS: Fix NULL dereference in pnfs_generic_alloc_ds_commits

parent 5f011483
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ pnfs_generic_alloc_ds_commits(struct nfs_commit_info *cinfo,
		 * If the layout segment is invalid, then let
		 * 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))
			break;
		data = nfs_commitdata_alloc(false);