kprobes: Fix selftest to clear flags field for reusing probes
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 14 Oct 2010 03:10:24 +0000 (12:10 +0900)
committerIngo Molnar <mingo@elte.hu>
Thu, 14 Oct 2010 06:55:27 +0000 (08:55 +0200)
commitfd02e6f7ae085840d43d780149fcf95a614eca5e
tree447aad5f52452d17145c75dfe9e900ba7b457466
parent0f55a2f3d496133dd22f1e4e49fb7301da87c7bb
kprobes: Fix selftest to clear flags field for reusing probes

Fix selftest to clear flags field for reusing probes
because the flags field can be modified by Kprobes.
This also set NULL to kprobe.addr instead of 0.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: 2nddept-manager@sdl.hitachi.co.jp
LKML-Reference: <20101014031024.4100.50107.stgit@ltc236.sdl.hitachi.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/test_kprobes.c