From: Zygo Blaxell Date: Tue, 16 Jun 2009 22:33:57 +0000 (-0700) Subject: lib/genalloc.c: remove unmatched write_lock() in gen_pool_destroy X-Git-Tag: v2.6.31-rc1~299^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e8a2dea0ca91fe2cb7de7ea212124cfe8c82c35;p=pandora-kernel.git lib/genalloc.c: remove unmatched write_lock() in gen_pool_destroy There is a call to write_lock() in gen_pool_destroy which is not balanced by any corresponding write_unlock(). This causes problems with preemption because the preemption-disable counter is incremented in the write_lock() call, but never decremented by any call to write_unlock(). This bug is gen_pool_destroy, and one of them is non-x86 arch-specific code. Signed-off-by: Zygo Blaxell Cc: Jiri Kosina Cc: Steve Wise Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed