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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to