aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-02-02 19:27:00 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-02-02 19:27:00 -0800
commit859281ff370977f917ec2195f86a5bfccf1fc6d6 (patch)
treeea8b4d21187b5de7b61ca368701c89d3504d5f96 /include
parent93bfbd71db4d2e01c05e219f285249a74808b1d4 (diff)
parentf58914e41473faf15e2dd66ad26be914da1bce71 (diff)
downloadkernel_goldelico_gta04-859281ff370977f917ec2195f86a5bfccf1fc6d6.zip
kernel_goldelico_gta04-859281ff370977f917ec2195f86a5bfccf1fc6d6.tar.gz
kernel_goldelico_gta04-859281ff370977f917ec2195f86a5bfccf1fc6d6.tar.bz2
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6: slub: fix per cpu kmem_cache_cpu array memory leak kmalloc: return NULL instead of link failure
Diffstat (limited to 'include')
-rw-r--r--include/linux/slab_def.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h
index 39c3a5e..6ca6a7b 100644
--- a/include/linux/slab_def.h
+++ b/include/linux/slab_def.h
@@ -43,10 +43,7 @@ static inline void *kmalloc(size_t size, gfp_t flags)
i++;
#include <linux/kmalloc_sizes.h>
#undef CACHE
- {
- extern void __you_cannot_kmalloc_that_much(void);
- __you_cannot_kmalloc_that_much();
- }
+ return NULL;
found:
#ifdef CONFIG_ZONE_DMA
if (flags & GFP_DMA)
@@ -77,10 +74,7 @@ static inline void *kmalloc_node(size_t size, gfp_t flags, int node)
i++;
#include <linux/kmalloc_sizes.h>
#undef CACHE
- {
- extern void __you_cannot_kmalloc_that_much(void);
- __you_cannot_kmalloc_that_much();
- }
+ return NULL;
found:
#ifdef CONFIG_ZONE_DMA
if (flags & GFP_DMA)