diff options
Diffstat (limited to 'arch/um/os-Linux/sigio.c')
-rw-r--r-- | arch/um/os-Linux/sigio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/os-Linux/sigio.c b/arch/um/os-Linux/sigio.c index 2c23cb261188..dc03e9cccb63 100644 --- a/arch/um/os-Linux/sigio.c +++ b/arch/um/os-Linux/sigio.c | |||
@@ -105,7 +105,7 @@ static int need_poll(struct pollfds *polls, int n) | |||
105 | if(n <= polls->size) | 105 | if(n <= polls->size) |
106 | return 0; | 106 | return 0; |
107 | 107 | ||
108 | new = um_kmalloc_atomic(n * sizeof(struct pollfd)); | 108 | new = kmalloc(n * sizeof(struct pollfd), UM_GFP_ATOMIC); |
109 | if(new == NULL){ | 109 | if(new == NULL){ |
110 | printk("need_poll : failed to allocate new pollfds\n"); | 110 | printk("need_poll : failed to allocate new pollfds\n"); |
111 | return -ENOMEM; | 111 | return -ENOMEM; |
@@ -233,7 +233,7 @@ static struct pollfd *setup_initial_poll(int fd) | |||
233 | { | 233 | { |
234 | struct pollfd *p; | 234 | struct pollfd *p; |
235 | 235 | ||
236 | p = um_kmalloc(sizeof(struct pollfd)); | 236 | p = kmalloc(sizeof(struct pollfd), UM_GFP_KERNEL); |
237 | if (p == NULL) { | 237 | if (p == NULL) { |
238 | printk("setup_initial_poll : failed to allocate poll\n"); | 238 | printk("setup_initial_poll : failed to allocate poll\n"); |
239 | return NULL; | 239 | return NULL; |