mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Set status for error path
Do not leave status unitialized, since in some cases, it's tested, when the function returns error.
This commit is contained in:
parent
f9bd70878b
commit
cd4c26a27f
@ -1,5 +1,6 @@
|
||||
Version 2.02.91 -
|
||||
===================================
|
||||
Set status in _fsadm_cmd() for error path.
|
||||
Add missing deps for lvm2api for rebuild when lvm-internal is changed.
|
||||
Fix resource leaks for failing allocation of formats (lvm1/2,pool).
|
||||
Release allocated resources in error path for composite_filter_create().
|
||||
|
@ -159,6 +159,9 @@ static int _fsadm_cmd(struct cmd_context *cmd,
|
||||
|
||||
argv[i++] = (fcmd == FSADM_CMD_RESIZE) ? "resize" : "check";
|
||||
|
||||
if (status)
|
||||
*status = -1;
|
||||
|
||||
if (dm_snprintf(lv_path, PATH_MAX, "%s%s/%s", cmd->dev_dir, lp->vg_name,
|
||||
lp->lv_name) < 0) {
|
||||
log_error("Couldn't create LV path for %s", lp->lv_name);
|
||||
|
Loading…
Reference in New Issue
Block a user