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

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

Merge "platform: msm_bus: Address potential buffer overflow issue"

parents 496e06df fbea4f93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1369,7 +1369,7 @@ register_adhoc(uint32_t mas, uint32_t slv, char *name, bool active_only)
	}

	len = strnlen(name, MAX_STR_CL);
	client->name = kzalloc(len, GFP_KERNEL);
	client->name = kzalloc((len + 1), GFP_KERNEL);
	if (!client->name) {
		MSM_BUS_ERR("%s: Error allocating client name buf", __func__);
		free_cl_mem(client);