uprobes/tracing: Fix uprobe_perf_open() on uprobe_apply() failure
authorOleg Nesterov <oleg@redhat.com>
Thu, 24 Apr 2014 11:33:31 +0000 (13:33 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 30 Apr 2014 17:10:42 +0000 (19:10 +0200)
commit927d687480ab7e43d73a003bab58803fc67717d9
tree22b7b6454f2b3bfc1994a0741fa41884b91966cd
parentce5f36a58fd1d92cb945cf2568751d40e8598508
uprobes/tracing: Fix uprobe_perf_open() on uprobe_apply() failure

uprobe_perf_open()->uprobe_apply() can fail, but this error is wrongly
ignored. Change uprobe_perf_open() to do uprobe_perf_close() and return
the error code in this case.

Change uprobe_perf_close() to propogate the error from uprobe_apply()
as well, although it should not fail.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/trace/trace_uprobe.c