1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Cope better with an undefined target_percent operation in _percent_run.

This commit is contained in:
Alasdair Kergon 2010-12-08 19:26:35 +00:00
parent 54fca7b1ca
commit e8bed35ddf
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,7 @@
Version 2.02.79 -
===================================
Fix write to released memory in vg_relase(). (2.02.78)
Cope better with an undefined target_percent operation in _percent_run.
Fix write to released memory in vg_release(). (2.02.78)
Version 2.02.78 - 6th December 2010
===================================

View File

@ -507,8 +507,10 @@ static int _percent_run(struct dev_manager *dm, const char *name,
continue;
}
if (segtype->ops->target_percent &&
!segtype->ops->target_percent(&dm->target_state,
if (!segtype->ops->target_percent)
continue;
if (!segtype->ops->target_percent(&dm->target_state,
&percent, dm->mem,
dm->cmd, seg, params,
&total_numerator,