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

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

Merge "diag: Use valid data_source for a valid token"

parents 7f8b1fd6 b4b9eb69
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1069,6 +1069,11 @@ void extract_dci_pkt_rsp(unsigned char *buf, int len, int data_source,
		return;
		return;
	}
	}


	if (token != entry->client_info.token) {
		mutex_unlock(&driver->dci_mutex);
		return;
	}

	mutex_lock(&entry->buffers[data_source].buf_mutex);
	mutex_lock(&entry->buffers[data_source].buf_mutex);
	rsp_buf = entry->buffers[data_source].buf_cmd;
	rsp_buf = entry->buffers[data_source].buf_cmd;