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

Commit b872da57 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: msm_bus: Check the correct handle when creating debugfs entry"

parents 1e559ce5 8738756d
Loading
Loading
Loading
Loading
+16 −5
Original line number Diff line number Diff line
@@ -840,12 +840,23 @@ static int __init msm_bus_debugfs_init(void)
	}

	list_for_each_entry(cldata, &cl_list, list) {
		if (cldata->pdata) {
			if (cldata->pdata->name == NULL) {
				MSM_BUS_DBG("Client name not found\n");
				continue;
			}
			cldata->file = msm_bus_dbg_create(cldata->
				pdata->name, S_IRUGO, clients, cldata->clid);
		} else if (cldata->handle) {
			if (cldata->handle->name == NULL) {
				MSM_BUS_DBG("Client doesn't have a name\n");
				continue;
			}
			cldata->file = debugfs_create_file(cldata->handle->name,
							S_IRUGO, clients,
							(void *)cldata->handle,
							&client_data_fops);
		}
	}

	mutex_lock(&msm_bus_dbg_fablist_lock);