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

Commit bbddabf4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Add debug logs while diag deinit"

parents 04301c31 00f02017
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2063,6 +2063,9 @@ static int diag_ioctl_lsm_deinit(void)
	if (!(driver->data_ready[i] & DEINIT_TYPE)) {
		driver->data_ready[i] |= DEINIT_TYPE;
		atomic_inc(&driver->data_ready_notif[i]);
		DIAG_LOG(DIAG_DEBUG_USERSPACE,
			"Setting DEINIT_TYPE for pid: %d\n",
			current->tgid);
	}
	mutex_unlock(&driver->diagchar_mutex);
	wake_up_interruptible(&driver->wait_q);
@@ -3757,6 +3760,9 @@ static ssize_t diagchar_read(struct file *file, char __user *buf, size_t count,
		COPY_USER_SPACE_OR_ERR(buf, data_type, 4);
		if (ret == -EFAULT)
			goto exit;
		DIAG_LOG(DIAG_DEBUG_USERSPACE,
			"Copied DEINIT_TYPE pkt current->tgid: %d\n",
			current->tgid);
		driver->data_ready[index] ^= DEINIT_TYPE;
		atomic_dec(&driver->data_ready_notif[index]);
		mutex_unlock(&driver->diagchar_mutex);