Re: [PATCH 1/3] btrfs-progs: mechanism to fetch fsinfo from btrfs-control v3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 11/07/2013 06:04 PM, Stefan Behrens wrote:
On Thu,  7 Nov 2013 18:01:41 +0800, Anand Jain wrote:
+	*out_fslist = malloc(sz);
+	if (*out_fslist == NULL) {
+		ret = -ENOMEM;
+		goto out;
+	}
+	memcpy(*out_fslist, fslist, sz);
+	ret = 0;
+out:
+	free(fsargs_saved);
+	close(fd);
+	return 0;
+}

return ret;

 nice catch. Thanks.
 Also fsargs_saved wasn't initialized along with one of early goto out.
 I have fixed it as well in v4 which was sent out.

Thanks, Anand

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux