From: Sonic Zhang Date: Mon, 25 Aug 2008 10:00:45 +0000 (+0800) Subject: Blackfin arch: Fix bug - when to rmmod the L1_module, it stucks and then reboot the... X-Git-Tag: v2.6.27-rc5~2^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=225f7e1eb56ad054c328ae1b11601ea4de7488ba;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Bryan Wu --- 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; }