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

Commit 21ec6ffa authored by Alan Cox's avatar Alan Cox Committed by Sage Weil
Browse files

ceph: fix potential double free



We re-run the loop but we don't re-set the attrs pointer back to NULL.

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Reviewed-by: default avatarAlex Elder <elder@inktank.com>
parent 85effe18
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -457,6 +457,7 @@ static int __build_xattrs(struct inode *inode)
			for (i = 0; i < numattr; i++)
				kfree(xattrs[i]);
			kfree(xattrs);
			xattrs = NULL;
			goto start;
		}
		err = -EIO;