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

Commit 7c132f3a authored by Mohit Aggarwal's avatar Mohit Aggarwal
Browse files

diag: Properly update memory device clients



Currently diag driver is not updating memory
device clients properly after logging switch.
This patch fixes this issue.

Change-Id: I037188047c6beceef108a7d5d65c2697f835cd3e
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
parent 36765e06
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -463,11 +463,12 @@ void diag_update_md_clients(unsigned int type)
			for (j = 0; j < driver->num_clients; j++) {
				if (driver->client_map[j].pid != 0 &&
					driver->client_map[j].pid ==
					driver->md_session_map[i]->pid)
					driver->md_session_map[i]->pid) {
					driver->data_ready[j] |= type;
					break;
				}
			}
	}
	wake_up_interruptible(&driver->wait_q);
	mutex_unlock(&driver->diagchar_mutex);
}