Commit 990c5587 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Linus Torvalds

uml: fixup allocation in the ubd driver

Sanitise gfp flags; it actually is an atomic context, so drop the
GFP_KERNEL part.
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2adcec21
...@@ -1102,7 +1102,7 @@ static void do_ubd_request(request_queue_t *q) ...@@ -1102,7 +1102,7 @@ static void do_ubd_request(request_queue_t *q)
struct scatterlist *sg = &dev->sg[dev->start_sg]; struct scatterlist *sg = &dev->sg[dev->start_sg];
io_req = kmalloc(sizeof(struct io_thread_req), io_req = kmalloc(sizeof(struct io_thread_req),
GFP_KERNEL | GFP_ATOMIC); GFP_ATOMIC);
if(io_req == NULL){ if(io_req == NULL){
if(list_empty(&dev->restart)) if(list_empty(&dev->restart))
list_add(&dev->restart, &restart); list_add(&dev->restart, &restart);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment