summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2008-08-25 18:00:45 +0800
committerBryan Wu <cooloney@kernel.org>2008-08-25 18:00:45 +0800
commit225f7e1eb56ad054c328ae1b11601ea4de7488ba (patch)
treee88340ccafe733454e7fb863a32eee525402dfac /arch/blackfin
parentd70536ec3ad68474f5b093bcbcc8c5b6ba50831b (diff)
downloadkernel-crypto-225f7e1eb56ad054c328ae1b11601ea4de7488ba.tar.gz
kernel-crypto-225f7e1eb56ad054c328ae1b11601ea4de7488ba.tar.xz
kernel-crypto-225f7e1eb56ad054c328ae1b11601ea4de7488ba.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/mm/blackfin_sram.c b/arch/blackfin/mm/blackfin_sram.c
index 9d2be43ac3d..1ed1b15a391 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;
}