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:
parent
54fca7b1ca
commit
e8bed35ddf
@ -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
|
||||
===================================
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user