Fix compiler error in dm-ioctl.c
PATCH 1/1 Fix compiler error in dm-ioctl.c
Adds missing second argument to a new kmalloc() call.
Signature · 16 lines
Bob Miller Email: [email protected] 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; }