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

Commit c846b060 authored by Sagar Dharia's avatar Sagar Dharia
Browse files

msm_bus: arb: Update pointer before initializing memory



After krealloc, make sure to update the handle to newly allocated
memory to ensure correct memory gets initialized in memset.

Change-Id: Ia1b102ed9131e10c60095dcca14ab84599575278
Signed-off-by: default avatarSagar Dharia <sdharia@codeaurora.org>
parent 28d9a3f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -927,10 +927,10 @@ static int alloc_handle_lst(int size)
			goto exit_alloc_handle_lst;
		}

		handle_list.cl_list = t_cl_list;
		memset(&handle_list.cl_list[handle_list.num_entries], 0,
			NUM_CL_HANDLES * sizeof(struct msm_bus_client *));
		handle_list.num_entries += NUM_CL_HANDLES;
		handle_list.cl_list = t_cl_list;
	}
exit_alloc_handle_lst:
	return ret;