From 7970be92e2b1070c10caecd1fa7e7d51ca18ac8a Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 20 Jul 2026 21:44:03 +0200 Subject: [PATCH] MT#61856 recording: check recorded call registered in kernel When setting up streams, we currently check the pointer itself, whether the kernel table isn't open, an existing stream index and the `NO_RECORDING` flag. Check additionally whether the recording call was actually registered in the kernel. Otherwise if the `proc_init()` fails to to add call to the kernel recording interface, `setup_stream_proc()` still tries to add the stream to the kernel. Change-Id: Ibaf25d1f91f9818325e3e9f7be3316610f5c63be --- daemon/recording.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/recording.c b/daemon/recording.c index 27b633233..6adbb837b 100644 --- a/daemon/recording.c +++ b/daemon/recording.c @@ -1048,6 +1048,8 @@ static void setup_stream_proc(struct packet_stream *stream) { return; if (!kernel.is_open) return; + if (recording->proc.call_idx == UNINIT_IDX) + return; if (stream->recording.proc.stream_idx != UNINIT_IDX) return; if (ML_ISSET(ml, NO_RECORDING))