* [PATCH] trivial patch to trivial patch to dm-table.c
@ 2004-04-23 22:08 Dave Olien
2004-04-26 8:13 ` thornber
0 siblings, 1 reply; 2+ messages in thread
From: Dave Olien @ 2004-04-23 22:08 UTC (permalink / raw)
To: linux-lvm, linux-kernel; +Cc: thornber
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] trivial patch to trivial patch to dm-table.c
2004-04-23 22:08 [PATCH] trivial patch to trivial patch to dm-table.c Dave Olien
@ 2004-04-26 8:13 ` thornber
0 siblings, 0 replies; 2+ messages in thread
From: thornber @ 2004-04-26 8:13 UTC (permalink / raw)
To: Dave Olien; +Cc: linux-lvm, linux-kernel, thornber
On Fri, Apr 23, 2004 at 03:08:06PM -0700, Dave Olien wrote:
> Here's a trivial patch to call to dm_vcalloc().
Merged into udm.
Thanks,
- Joe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-26 8:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23 22:08 [PATCH] trivial patch to trivial patch to dm-table.c Dave Olien
2004-04-26 8:13 ` thornber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox