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

Commit 3bdd3852 authored by Sagar Dharia's avatar Sagar Dharia
Browse files

msm_bus: arb: Fix pointer allocation for client handles



Fix pointer allocation math to allocate expected number of
client handles.

Change-Id: Ibc5f34ab27062a74b7345b89bff766c61e0f4ca8
Signed-off-by: default avatarSagar Dharia <sdharia@codeaurora.org>
parent 1acad2bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -918,7 +918,7 @@ static int alloc_handle_lst(int size)
	} else {
		t_cl_list = krealloc(handle_list.cl_list,
				sizeof(struct msm_bus_client *) *
				handle_list.num_entries + NUM_CL_HANDLES,
				(handle_list.num_entries + NUM_CL_HANDLES),
				GFP_KERNEL);
		if (ZERO_OR_NULL_PTR(t_cl_list)) {
			ret = -ENOMEM;