aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 88bc6336ce3d..c3feeaab3875 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3690,8 +3690,8 @@ static __always_inline void *__do_kmalloc(size_t size, gfp_t flags,
3690 * functions. 3690 * functions.
3691 */ 3691 */
3692 cachep = __find_general_cachep(size, flags); 3692 cachep = __find_general_cachep(size, flags);
3693 if (unlikely(cachep == NULL)) 3693 if (unlikely(ZERO_OR_NULL_PTR(cachep)))
3694 return NULL; 3694 return cachep;
3695 return __cache_alloc(cachep, flags, caller); 3695 return __cache_alloc(cachep, flags, caller);
3696} 3696}
3697 3697