Skip to contentSkip to conversation

trivial patch to trivial patch to dm-table.c

PATCH Applied Dave Olien 2 participants 2 messages Apr 23, 2004 – Apr 26, 2004 Device mapper

lore
Share & tools
lore

Dave Olien

author
#0 lore raw

PATCH 1/1 trivial patch to trivial patch to dm-table.c

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.

drivers/md/dm-table.c +2 -2
diff -ur rc2-mm1-UDM1-original/drivers/md/dm-table.c rc2-mm1-UDM1-patched/drivers/md/dm-table.c
@@ -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;
 
#1 lore raw
Quoted 1 line · Dave Olien

Here's a trivial patch to call to dm_vcalloc().

Merged into udm.

Thanks,

- Joe