kprobes: fix error checking of batch registration
authorMasami Hiramatsu <mhiramat@redhat.com>
Thu, 12 Jun 2008 22:21:35 +0000 (15:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Jun 2008 01:05:40 +0000 (18:05 -0700)
commit67dddaad5d8b8c5ee5b96a7e2f6cb0faad703865
tree373e5ba749f93e0f1617182f37aca08df5e8b243
parent24aac480e76c6f5d1391ac05c5e9c0eb9b0cd302
kprobes: fix error checking of batch registration

Fix error checking routine to catch an error which occurs in first
__register_*probe().

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: David Miller <davem@davemloft.net>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kprobes.c