]> err.no Git - linux-2.6/blobdiff - arch/um/drivers/fd.c
uml: fix previous request size limit fix
[linux-2.6] / arch / um / drivers / fd.c
index 7f083ec47a4f03bec098b528b000c1be0fb327d4..39c01ffd45c92a7cb9d2b9a52fb57a0eb2dea2e7 100644 (file)
@@ -37,7 +37,7 @@ static void *fd_init(char *str, int device, const struct chan_opts *opts)
                printk("fd_init : couldn't parse file descriptor '%s'\n", str);
                return(NULL);
        }
-       data = um_kmalloc(sizeof(*data));
+       data = kmalloc(sizeof(*data), UM_GFP_KERNEL);
        if(data == NULL) return(NULL);
        *data = ((struct fd_chan) { .fd         = n,
                                    .raw        = opts->raw });