diff options
Diffstat (limited to 'arch/blackfin/mm/blackfin_sram.c')
-rw-r--r-- | arch/blackfin/mm/blackfin_sram.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/blackfin/mm/blackfin_sram.c b/arch/blackfin/mm/blackfin_sram.c index 16c6169ed01b..b99ea883cd22 100644 --- a/arch/blackfin/mm/blackfin_sram.c +++ b/arch/blackfin/mm/blackfin_sram.c | |||
@@ -521,10 +521,9 @@ void *sram_alloc_with_lsl(size_t size, unsigned long flags) | |||
521 | struct sram_list_struct *lsl = NULL; | 521 | struct sram_list_struct *lsl = NULL; |
522 | struct mm_struct *mm = current->mm; | 522 | struct mm_struct *mm = current->mm; |
523 | 523 | ||
524 | lsl = kmalloc(sizeof(struct sram_list_struct), GFP_KERNEL); | 524 | lsl = kzalloc(sizeof(struct sram_list_struct), GFP_KERNEL); |
525 | if (!lsl) | 525 | if (!lsl) |
526 | return NULL; | 526 | return NULL; |
527 | memset(lsl, 0, sizeof(*lsl)); | ||
528 | 527 | ||
529 | if (flags & L1_INST_SRAM) | 528 | if (flags & L1_INST_SRAM) |
530 | addr = l1_inst_sram_alloc(size); | 529 | addr = l1_inst_sram_alloc(size); |