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

Commit 72b96432 authored by Preeti Nagar's avatar Preeti Nagar Committed by Gerrit - the friendly Code Review server
Browse files

seemp: change for privacy



Prevent logging of kernel events if no QSSP client is available.

Change-Id: Ie8d77de019ce282faae7eeb6576f13bd0cb21b0d
Signed-off-by: default avatarPreeti Nagar <pnagar@codeaurora.org>
parent cdfdc0a5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -273,6 +273,9 @@ static ssize_t
seemp_logk_write(struct file *file, const char __user *buf, size_t count,
		loff_t *ppos)
{
	if (seemp_logk_kernel_begin == NULL)
		seemp_logk_attach();

	return seemp_logk_usr_record(buf, count);
}

@@ -742,7 +745,6 @@ __init int seemp_logk_init(void)
		goto class_destroy_fail;
	}

	seemp_logk_attach();
	mutex_init(&slogk_dev->lock);
	init_waitqueue_head(&slogk_dev->readers_wq);
	init_waitqueue_head(&slogk_dev->writers_wq);