From: Masami Hiramatsu Date: Thu, 4 Apr 2013 10:42:30 +0000 (+0900) Subject: kprobes/x86: Just return error for sanity check failure instead of using BUG_ON X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~119^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8101376dc5f42bd93b36d4ab210b44503d0ec11f;p=pandora-kernel.git kprobes/x86: Just return error for sanity check failure instead of using BUG_ON Return an error from __copy_instruction() and use printk() to give us a more productive message, since this is just an error case which we can handle and also the BUG_ON() never tells us why and what happened. This is related to the following bug-report: https://bugzilla.redhat.com/show_bug.cgi?id=910649 Signed-off-by: Masami Hiramatsu Cc: Frank Ch. Eigler Cc: Steven Rostedt Cc: yrl.pp-manager.tt@hitachi.com Link: http://lkml.kernel.org/r/20130404104230.22862.85242.stgit@mhiramat-M0-7522 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed