diff options
-rw-r--r-- | arch/blackfin/mm/blackfin_sram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/mm/blackfin_sram.c b/arch/blackfin/mm/blackfin_sram.c index 9d2be43ac3da..1ed1b15a3910 100644 --- a/arch/blackfin/mm/blackfin_sram.c +++ b/arch/blackfin/mm/blackfin_sram.c | |||
@@ -335,7 +335,7 @@ static int _sram_free(const void *addr, | |||
335 | plast->size += pavail->size; | 335 | plast->size += pavail->size; |
336 | kmem_cache_free(sram_piece_cache, pavail); | 336 | kmem_cache_free(sram_piece_cache, pavail); |
337 | } else { | 337 | } else { |
338 | pavail->next = plast; | 338 | pavail->next = plast->next; |
339 | plast->next = pavail; | 339 | plast->next = pavail; |
340 | plast = pavail; | 340 | plast = pavail; |
341 | } | 341 | } |