]> sourceware.org Git - lvm2.git/commit
integrity: fix segfault on error path when replacing images
authorDavid Teigland <teigland@redhat.com>
Wed, 13 Jan 2021 19:33:19 +0000 (13:33 -0600)
committerDavid Teigland <teigland@redhat.com>
Wed, 13 Jan 2021 19:39:33 +0000 (13:39 -0600)
commit0534723a2de62da913dfd88d40ee6f8b8b93ac56
tree0747d36aeeb7bfdb2773a0ddbe47b9d2ce1b8063
parentff1324d5952db6f79c2c916c4f4520b3338abf4f
integrity: fix segfault on error path when replacing images

When adding replacement raid+integrity images (lvconvert --repair
after a raid image is lost), various errors can cause the function
to exit with an error.  On this exit path, the function attempts
to revert new images that had been created but not yet used.  The
cleanup failed to account for the fact that not all images needed
to be reverted.
lib/metadata/integrity_manip.c
This page took 0.033292 seconds and 5 git commands to generate.