1
0
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:
Takahiro Yasui 2009-03-23 21:56:32 +00:00
parent 1d13e51826
commit 6a8feb3c26
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ Version 2.02.46 -
Flush memory pool and fix locking in clvmd refresh and backup command.
Fix unlocks in clvmd-corosync. Broken in 2.02.45.
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
================================

View File

@ -154,8 +154,8 @@ int backup_init(struct cmd_context *cmd, const char *dir,
int enabled)
{
if (!(cmd->backup_params = dm_pool_zalloc(cmd->libmem,
sizeof(*cmd->archive_params)))) {
log_error("archive_params alloc failed");
sizeof(*cmd->backup_params)))) {
log_error("backup_params alloc failed");
return 0;
}