* [PATCH] Fix memory allocation size and error message in backup_init
@ 2009-03-19 15:39 Takahiro Yasui
2009-03-19 16:06 ` Alasdair G Kergon
0 siblings, 1 reply; 2+ messages in thread
From: Takahiro Yasui @ 2009-03-19 15:39 UTC (permalink / raw)
To: lvm-devel
Hi,
This patch fixes the memory allocation size and the error message
in backup_init function.
Regards,
---
Takahiro Yasui
Hitachi Computer Products (America), Inc.
Signed-off-by: Takahiro Yasui <tyasui@redhat.com>
---
lib/format_text/archiver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: LVM2.02.46-20090316/lib/format_text/archiver.c
===================================================================
--- LVM2.02.46-20090316.orig/lib/format_text/archiver.c
+++ LVM2.02.46-20090316/lib/format_text/archiver.c
@@ -154,8 +154,8 @@ int backup_init(struct cmd_context *cmd,
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-19 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 15:39 [PATCH] Fix memory allocation size and error message in backup_init Takahiro Yasui
2009-03-19 16:06 ` Alasdair G Kergon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.