diff options
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -334,6 +334,8 @@ static void *slob_alloc(size_t size, gfp_t gfp, int align, int node) | |||
334 | BUG_ON(!b); | 334 | BUG_ON(!b); |
335 | spin_unlock_irqrestore(&slob_lock, flags); | 335 | spin_unlock_irqrestore(&slob_lock, flags); |
336 | } | 336 | } |
337 | if (unlikely((gfp & __GFP_ZERO) && b)) | ||
338 | memset(b, 0, size); | ||
337 | return b; | 339 | return b; |
338 | } | 340 | } |
339 | 341 | ||