Skip to content

Commit

Permalink
x86: apply missing DMA/OOM prevention to floppy_32.h
Browse files Browse the repository at this point in the history
commit 554d284 added _GPF_NORETRY
to floppy_64.h to prevent OOM killer on floppy DMA allocations.

Apply the same to the 32 bit variant.

Found during the attempt to unify the _32/_64 variants. Seperate commit
to document the resulting code change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Oct 17, 2007
1 parent 106619c commit 2dc27f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/floppy_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static int fd_request_irq(void)

static unsigned long dma_mem_alloc(unsigned long size)
{
return __get_dma_pages(GFP_KERNEL,get_order(size));
return __get_dma_pages(GFP_KERNEL | __GFP_NORETRY, get_order(size));
}


Expand Down

0 comments on commit 2dc27f0

Please sign in to comment.