From: Dave Olien <dmo@osdl.org>
To: linux-lvm@redhat.com, linux-kernel@vger.kernel.org
Cc: thornber@redhat.com
Subject: [PATCH] trivial patch to trivial patch to dm-table.c
Date: Fri, 23 Apr 2004 15:08:06 -0700 [thread overview]
Message-ID: <20040423220806.GA29188@osdl.org> (raw)
Hi, Joe
Here's a trivial patch to call to dm_vcalloc(). The patch doesn't
actually change the behavior of the code. But I think this change
makes the call more in the spirit of the declaration for dm_vcallc().
this is to your latest udm1 patch to 2.6.6-rc2.
diff -ur rc2-mm1-UDM1-original/drivers/md/dm-table.c rc2-mm1-UDM1-patched/drivers/md/dm-table.c
--- rc2-mm1-UDM1-original/drivers/md/dm-table.c 2004-04-23 14:53:20.000000000 -0700
+++ rc2-mm1-UDM1-patched/drivers/md/dm-table.c 2004-04-23 14:57:20.000000000 -0700
@@ -181,8 +181,8 @@
/*
* Allocate both the target array and offset array at once.
*/
- n_highs = (sector_t *) dm_vcalloc(sizeof(struct dm_target) +
- sizeof(sector_t), num);
+ n_highs = (sector_t *) dm_vcalloc(num, sizeof(struct dm_target) +
+ sizeof(sector_t));
if (!n_highs)
return -ENOMEM;
next reply other threads:[~2004-04-23 22:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-23 22:08 Dave Olien [this message]
2004-04-26 8:13 ` [PATCH] trivial patch to trivial patch to dm-table.c thornber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040423220806.GA29188@osdl.org \
--to=dmo@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-lvm@redhat.com \
--cc=thornber@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox