Messages in this thread Patch in this message | | | Date | Thu, 27 Feb 2003 15:39:52 -0800 | From | Bob Miller <> | Subject | [TRIVIAL PATCH 2.5.63] Fix compiler error in dm-ioctl.c |
| |
Adds missing second argument to a new kmalloc() call.
-- Bob Miller Email: rem@osdl.org Open Source Development Lab Phone: 503.626.2455 Ext. 17
diff -Nru a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c --- a/drivers/md/dm-ioctl.c Thu Feb 27 15:32:46 2003 +++ b/drivers/md/dm-ioctl.c Thu Feb 27 15:32:46 2003 @@ -174,7 +174,7 @@ static int register_with_devfs(struct hash_cell *hc) { struct gendisk *disk = dm_disk(hc->md); - char *name = kmalloc(DM_NAME_LEN + strlen(DM_DIR) + 1); + char *name = kmalloc(DM_NAME_LEN + strlen(DM_DIR) + 1, GFP_KERNEL); if (!name) { return -ENOMEM; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |