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

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

nfs4.1: mark layout as bad on error path in _pnfs_return_layout

parent ea0ded74
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -652,6 +652,8 @@ _pnfs_return_layout(struct inode *ino)
	lrp = kzalloc(sizeof(*lrp), GFP_KERNEL);
	if (unlikely(lrp == NULL)) {
		status = -ENOMEM;
		set_bit(NFS_LAYOUT_RW_FAILED, &lo->plh_flags);
		set_bit(NFS_LAYOUT_RO_FAILED, &lo->plh_flags);
		put_layout_hdr(lo);
		goto out;
	}