]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
dm snapshot: persistent fix dtr cleanup
authorJonathan Brassow <jbrassow@redhat.com>
Thu, 2 Apr 2009 18:55:35 +0000 (19:55 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 2 Apr 2009 18:55:35 +0000 (19:55 +0100)
commita32079ce17899192a7b98a42753be467605a8b2f
tree116fefba16427c16cb792e218889aa971eab755b
parent1e302a929e2da6e8448e2058e4b07b07252b57fe
dm snapshot: persistent fix dtr cleanup

The persistent exception store destructor does not properly
account for all conditions in which it can be called.  If it
is called after 'ctr' but before 'read_metadata' (e.g. if
something else in 'snapshot_ctr' fails) then it will attempt
to free areas of memory that haven't been allocated yet.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap-persistent.c