]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix recent dm breakage
authorKevin Corry <corryk@us.ibm.com>
Thu, 27 Feb 2003 06:31:41 +0000 (22:31 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 27 Feb 2003 06:31:41 +0000 (22:31 -0800)
Dammit! I'm not having a good morning. :(

Missing GFP_xxx argument to kmalloc.

drivers/md/dm-ioctl.c

index a758417cce2e2209a24915f3608dd978e12ef8f0..931a625b766e53729e12e011a3c20c5fa7a9ae5d 100644 (file)
@@ -174,7 +174,7 @@ static void free_cell(struct hash_cell *hc)
 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;
        }