Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f393f4e authored by Steven Cahail's avatar Steven Cahail
Browse files

trace: ipc_logging: Destroy debugfs directories with logging contexts



IPC Logging currently creates debugfs directories for each of its
logging contexts, but does not remove them when destroying the contexts.
If a user attempts to access a directory associated with a destroyed
context, a crash will result.

Destroy debugfs directories when the logging context is destroyed.

Change-Id: I5a3b1cbf2fb5d9d0ede3d9da0fccd605b9fdf619
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent 22772af9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -857,6 +857,8 @@ int ipc_log_context_destroy(void *ctxt)
	list_del(&ilctxt->list);
	write_unlock_irqrestore(&context_list_lock_lha1, flags);

	debugfs_remove_recursive(ilctxt->dent);

	kfree(ilctxt);
	return 0;
}