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

Commit 95a79944 authored by Yuanyuan Liu's avatar Yuanyuan Liu Committed by Gerrit - the friendly Code Review server
Browse files

cnss_utils: Zero out cnss_utils priv structure during initalization



Zero out cnss_utils priv structure during initalization to make
sure it starts cleanly.

CRs-Fixed: 2072421
Change-Id: I72caa5fb7e1df16b018165d277cd3a404b81c304
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent b917824a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ static int __init cnss_utils_init(void)
{
	struct cnss_utils_priv *priv = NULL;

	priv = kmalloc(sizeof(*priv), GFP_KERNEL);
	priv = kzalloc(sizeof(*priv), GFP_KERNEL);
	if (!priv)
		return -ENOMEM;