Commit 1594c493 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'probes-fixes-v6.13-rc1' of...

Merge tag 'probes-fixes-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull eprobes fix from Masami Hiramatsu:

 - release eprobe when failing to add dyn_event.

   This unregisters event call and release eprobe when it fails to add a
   dynamic event. Found in cleaning up.

* tag 'probes-fixes-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  tracing/eprobe: Fix to release eprobe when failed to add dyn_event
parents 7cb1b466 494b3320
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -963,6 +963,11 @@ static int __trace_eprobe_create(int argc, const char *argv[])
		goto error;
	}
	ret = dyn_event_add(&ep->devent, &ep->tp.event->call);
	if (ret < 0) {
		trace_probe_unregister_event_call(&ep->tp);
		mutex_unlock(&event_mutex);
		goto error;
	}
	mutex_unlock(&event_mutex);
	return ret;
parse_error: