diff options
author | Giridhar Pemmasani <pgiri@yahoo.com> | 2006-10-28 19:38:34 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-28 20:30:52 +0200 |
commit | 52fd24ca1db3a741f144bbc229beefe044202cac (patch) | |
tree | bb3959b403c4bfec138b61e7943e17a76dc6cad6 /include/asm-sh64/termios.h | |
parent | [PATCH] Fix potential OOPs in blkdev_open() (diff) | |
download | linux-52fd24ca1db3a741f144bbc229beefe044202cac.tar.xz linux-52fd24ca1db3a741f144bbc229beefe044202cac.zip |
[PATCH] __vmalloc with GFP_ATOMIC causes 'sleeping from invalid context'
If __vmalloc is called to allocate memory with GFP_ATOMIC in atomic
context, the chain of calls results in __get_vm_area_node allocating memory
for vm_struct with GFP_KERNEL, causing the 'sleeping from invalid context'
warning. This patch fixes it by passing the gfp flags along so
__get_vm_area_node allocates memory for vm_struct with the same flags.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-sh64/termios.h')
0 files changed, 0 insertions, 0 deletions