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

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

Merge "diag: Allocate correct buffer size for PD names" into msm-4.9

parents 4ac723f0 bf225830
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -662,7 +662,7 @@ int diag_add_diag_id_to_list(uint8_t diag_id, char *process_name)
	if (!new_item)
		return -ENOMEM;
	kmemleak_not_leak(new_item);
	new_item->process_name = kzalloc(strlen(process_name), GFP_KERNEL);
	new_item->process_name = kzalloc(strlen(process_name) + 1, GFP_KERNEL);
	if (!new_item->process_name) {
		kfree(new_item);
		new_item = NULL;