diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||