mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix size and error message of memory allocation at backup initialization.
Author: Takahiro Yasui <tyasui@redhat.com>
This commit is contained in:
parent
1d13e51826
commit
6a8feb3c26
@ -8,6 +8,7 @@ Version 2.02.46 -
|
|||||||
Flush memory pool and fix locking in clvmd refresh and backup command.
|
Flush memory pool and fix locking in clvmd refresh and backup command.
|
||||||
Fix unlocks in clvmd-corosync. Broken in 2.02.45.
|
Fix unlocks in clvmd-corosync. Broken in 2.02.45.
|
||||||
Fix error message when adding metadata directory to internal list fails.
|
Fix error message when adding metadata directory to internal list fails.
|
||||||
|
Fix size and error message of memory allocation at backup initialization.
|
||||||
|
|
||||||
Version 2.02.45 - 3rd March 2009
|
Version 2.02.45 - 3rd March 2009
|
||||||
================================
|
================================
|
||||||
|
@ -154,8 +154,8 @@ int backup_init(struct cmd_context *cmd, const char *dir,
|
|||||||
int enabled)
|
int enabled)
|
||||||
{
|
{
|
||||||
if (!(cmd->backup_params = dm_pool_zalloc(cmd->libmem,
|
if (!(cmd->backup_params = dm_pool_zalloc(cmd->libmem,
|
||||||
sizeof(*cmd->archive_params)))) {
|
sizeof(*cmd->backup_params)))) {
|
||||||
log_error("archive_params alloc failed");
|
log_error("backup_params alloc failed");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user