From: Atsushi Nemoto Date: Thu, 12 Apr 2007 11:02:54 +0000 (+0900) Subject: [MIPS] Fix BUG(), BUG_ON() handling X-Git-Tag: v2.6.21~37^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba755f8ec80fdbf2b5212622eabf7355464c6327;p=pandora-kernel.git [MIPS] Fix BUG(), BUG_ON() handling With commit 63dc68a8cf60cb110b147dab1704d990808b39e2, kernel can not handle BUG() and BUG_ON() properly since get_user() returns false for kernel code. Use __get_user() to skip unnecessary access_ok(). This patch also make BRK_BUG code encoded in the TNE instruction. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed