Skip to content

Commit

Permalink
uml: fixup allocation in the ubd driver
Browse files Browse the repository at this point in the history
Sanitise gfp flags; it actually is an atomic context, so drop the
GFP_KERNEL part.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Peter Zijlstra authored and Linus Torvalds committed May 7, 2007
1 parent 2adcec2 commit 990c558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ static void do_ubd_request(request_queue_t *q)
struct scatterlist *sg = &dev->sg[dev->start_sg];

io_req = kmalloc(sizeof(struct io_thread_req),
GFP_KERNEL | GFP_ATOMIC);
GFP_ATOMIC);
if(io_req == NULL){
if(list_empty(&dev->restart))
list_add(&dev->restart, &restart);
Expand Down

0 comments on commit 990c558

Please sign in to comment.