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

Commit 961798b1 authored by Yu Wang's avatar Yu Wang
Browse files

cnss2: initialize the structures before using them



Some structures are used uninitialized, which may
result in unexpected behavior.
Initialize these structures before using them.

CRs-Fixed: 2494231
Change-Id: I89c7c8ec9defe1db14b9c8cdc3632f5d0051e626
Signed-off-by: default avatarYu Wang <yyuwang@codeaurora.org>
parent 4461eef6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ static int cnss_qmi_initiate_cal_update_ind_hdlr(
					 void *msg, unsigned int msg_len)
{
	struct msg_desc ind_desc;
	struct wlfw_initiate_cal_update_ind_msg_v01 ind_msg;
	struct wlfw_initiate_cal_update_ind_msg_v01 ind_msg = {0};
	struct cnss_cal_data *data;
	int ret = 0;

@@ -324,7 +324,7 @@ static int cnss_qmi_initiate_cal_download_ind_hdlr(
					 void *msg, unsigned int msg_len)
{
	struct msg_desc ind_desc;
	struct wlfw_initiate_cal_download_ind_msg_v01 ind_msg;
	struct wlfw_initiate_cal_download_ind_msg_v01 ind_msg = {0};
	struct cnss_cal_data *data;
	int ret = 0;