aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/fd.c')
-rw-r--r--arch/um/drivers/fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/fd.c b/arch/um/drivers/fd.c
index 7f083ec47a4..39c01ffd45c 100644
--- a/arch/um/drivers/fd.c
+++ b/arch/um/drivers/fd.c
@@ -37,7 +37,7 @@ static void *fd_init(char *str, int device, const struct chan_opts *opts)
37 printk("fd_init : couldn't parse file descriptor '%s'\n", str); 37 printk("fd_init : couldn't parse file descriptor '%s'\n", str);
38 return(NULL); 38 return(NULL);
39 } 39 }
40 data = um_kmalloc(sizeof(*data)); 40 data = kmalloc(sizeof(*data), UM_GFP_KERNEL);
41 if(data == NULL) return(NULL); 41 if(data == NULL) return(NULL);
42 *data = ((struct fd_chan) { .fd = n, 42 *data = ((struct fd_chan) { .fd = n,
43 .raw = opts->raw }); 43 .raw = opts->raw });