]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
tracing: fix oops in tracepoint_update_probe_range()
authorJaswinder Singh Rajput <jaswinder@kernel.org>
Wed, 18 Mar 2009 16:48:56 +0000 (22:18 +0530)
committerIngo Molnar <mingo@elte.hu>
Wed, 18 Mar 2009 17:54:39 +0000 (18:54 +0100)
commit09933a108e6730a464a1ab676c9decc11aee0edc
tree1233d15bd2e1e0e4fbfa4144a878f553a3b04a35
parent490362003457f8d387f6f6e73e3a7efbf56c3314
tracing: fix oops in tracepoint_update_probe_range()

Change this crash:

 BUG: unable to handle kernel NULL pointer dereference at (null)
 IP: [<ffffffff8107d4de>] tracepoint_update_probe_range+0x1f/0x9b
 PGD 13d5fb067 PUD 13d688067 PMD 0
 Oops: 0000 [#1] SMP

To a more debuggable WARN_ONCE().

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1237394936.3132.1.camel@localhost.localdomain>
[ moved the check outside the lock and added a WARN_ON(). ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/tracepoint.c