[PATCH] 5/5: dm-table.c: proper usage of dm_vcalloc

From: Kevin Corry
Date: Wed May 26 2004 - 12:03:59 EST


dm-table.c: Proper usage of dm_vcalloc. [Dave Olien]

--- diff/drivers/md/dm-table.c 2004-05-09 21:33:21.000000000 -0500
+++ source/drivers/md/dm-table.c 2004-05-25 11:03:14.000000000 -0500
@@ -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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/