diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2008-08-25 14:00:45 +0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-25 14:00:45 +0400 |
commit | 225f7e1eb56ad054c328ae1b11601ea4de7488ba (patch) | |
tree | e88340ccafe733454e7fb863a32eee525402dfac /arch/blackfin/mm | |
parent | d70536ec3ad68474f5b093bcbcc8c5b6ba50831b (diff) | |
download | linux-225f7e1eb56ad054c328ae1b11601ea4de7488ba.tar.xz |
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/blackfin/mm')
-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, plast->size += pavail->size; kmem_cache_free(sram_piece_cache, pavail); } else { - pavail->next = plast; + pavail->next = plast->next; plast->next = pavail; plast = pavail; } |