diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2007-07-19 10:49:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 19:04:50 +0200 |
commit | 7ac674f52778b95450509357435320be1d795248 (patch) | |
tree | 93657e44d8d7ba7f8857ba038074e2ec4a9c2d38 /drivers/isdn/sc | |
parent | FRV: work around a possible compiler bug (diff) | |
download | linux-7ac674f52778b95450509357435320be1d795248.tar.xz linux-7ac674f52778b95450509357435320be1d795248.zip |
vmalloc_32 should use GFP_KERNEL
I've noticed lots of failures of vmalloc_32 on machines where it
shouldn't have failed unless it was doing an atomic operation.
Looking closely, I noticed that:
#if defined(CONFIG_64BIT) && defined(CONFIG_ZONE_DMA32)
#define GFP_VMALLOC32 GFP_DMA32
#elif defined(CONFIG_64BIT) && defined(CONFIG_ZONE_DMA)
#define GFP_VMALLOC32 GFP_DMA
#else
#define GFP_VMALLOC32 GFP_KERNEL
#endif
Which seems to be incorrect, it should always -or- in the DMA flags
on top of GFP_KERNEL, thus this patch.
This fixes frequent errors launchin X with the nouveau DRM for example.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Andi Kleen <ak@suse.de>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/sc')
0 files changed, 0 insertions, 0 deletions