diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2008-08-25 10:00:45 (GMT) |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-25 10:00:45 (GMT) |
commit | 225f7e1eb56ad054c328ae1b11601ea4de7488ba (patch) | |
tree | e88340ccafe733454e7fb863a32eee525402dfac /arch/blackfin | |
parent | d70536ec3ad68474f5b093bcbcc8c5b6ba50831b (diff) | |
download | linux-fsl-qoriq-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')
-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 9d2be43..1ed1b15 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; } |