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

Commit f8c82541 authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: glink: Change dummy xprt allocation to kzalloc



Change allocation from kmalloc to kzalloc to prevent any usage
of function pointers that are not initialized.

CRs-Fixed: 2065710
Change-Id: I3a7589158e799e19072ca6a6847986b99da5d9ab
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 2d097a73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4095,7 +4095,7 @@ static struct glink_core_xprt_ctx *glink_create_dummy_xprt_ctx(
	xprt_ptr = kzalloc(sizeof(*xprt_ptr), GFP_KERNEL);
	if (!xprt_ptr)
		return ERR_PTR(-ENOMEM);
	if_ptr = kmalloc(sizeof(*if_ptr), GFP_KERNEL);
	if_ptr = kzalloc(sizeof(*if_ptr), GFP_KERNEL);
	if (!if_ptr) {
		kfree(xprt_ptr);
		return ERR_PTR(-ENOMEM);