[dm-devel] [PATCH maybe-for-3.13 01/20] dm thin: initialize dm_thin_new_mapping returned by get_next_mapping
Joe Thornber
thornber at redhat.com
Mon Jan 6 14:21:45 UTC 2014
On Fri, Dec 20, 2013 at 06:37:14PM -0500, Mike Snitzer wrote:
> As additional members are added to the dm_thin_new_mapping structure
> care should be taken to make sure they get initialized before use.
ACK.
> + memset(m, 0, sizeof(struct dm_thin_new_mapping));
> + INIT_LIST_HEAD(&m->list);
> + m->bio = NULL;
Remove redundant m->bio assignment?
More information about the dm-devel
mailing list