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

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

Merge "msm_bus: Check if cldata->pdata is null before access it"

parents 90de98df ac9dbb9b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -562,7 +562,8 @@ static ssize_t msm_bus_dbg_update_request_write(struct file *file,

	rt_mutex_lock(&msm_bus_dbg_cllist_lock);
	list_for_each_entry(cldata, &cl_list, list) {
		if (strnstr(chid, cldata->pdata->name, cnt)) {
		if (cldata->pdata &&
			strnstr(chid, cldata->pdata->name, cnt)) {
			found = 1;
			strsep(&chid, " ");
			if (chid) {