Browse Source

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>
Sonic Zhang 17 năm trước cách đây
mục cha
commit
225f7e1eb5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      arch/blackfin/mm/blackfin_sram.c

+ 1 - 1
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;
 	}