diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2008-08-25 06:00:45 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-25 06:00:45 -0400 |
commit | 225f7e1eb56ad054c328ae1b11601ea4de7488ba (patch) | |
tree | e88340ccafe733454e7fb863a32eee525402dfac /arch | |
parent | d70536ec3ad68474f5b093bcbcc8c5b6ba50831b (diff) |
Blackfin arch: Fix bug - when to rmmod the L1_module, it stucks and then reboot the board.
Fix this by correcting the wrong pointer
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch')
-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 | } |