dm thin: initialize dm_thin_new_mapping returned by get_next_mapping
authorMike Snitzer <snitzer@redhat.com>
Tue, 17 Dec 2013 18:19:11 +0000 (13:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:48:01 +0000 (13:48 -0800)
commit025d61e0f163e55a7a7b08975640c5c75c2690b8
tree74e6680ea7a40072935b842eaea30eba2116af4f
parent614319dfb0fb5da7fd2f96eb06df96bd3a04cbdd
dm thin: initialize dm_thin_new_mapping returned by get_next_mapping

commit 16961b042db8cc5cf75d782b4255193ad56e1d4f upstream.

As additional members are added to the dm_thin_new_mapping structure
care should be taken to make sure they get initialized before use.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-thin.c