aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index c9adfce00405..ad113c431e39 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2907,8 +2907,7 @@ void *__kmalloc(size_t size, unsigned int __nocast flags)
2907 * functions. 2907 * functions.
2908 */ 2908 */
2909 cachep = __find_general_cachep(size, flags); 2909 cachep = __find_general_cachep(size, flags);
2910 if (unlikely(cachep == NULL)) 2910 BUG_ON(!cachep); /* Allocation size too large for kmalloc */
2911 return NULL;
2912 return __cache_alloc(cachep, flags); 2911 return __cache_alloc(cachep, flags);
2913} 2912}
2914EXPORT_SYMBOL(__kmalloc); 2913EXPORT_SYMBOL(__kmalloc);