msm: qcn: Fix type casting of channel descriptor

Fix type casting of channel descriptor to avoid memory access
violations during the descriptor usage.

Change-Id: I3d73bf327fd796f482e492265d18d3417f21dc9a
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
This commit is contained in:
Amandeep Singh 2019-08-29 17:17:36 +05:30
parent 652a8550db
commit f19263cde8

View file

@ -998,7 +998,7 @@ struct sdio_al_channel_handle *sdio_al_register_channel(
return ERR_PTR(-EINVAL);
}
ch_info = kzalloc(sizeof(struct qcn_sdio_client_info), GFP_KERNEL);
ch_info = kzalloc(sizeof(struct qcn_sdio_ch_info), GFP_KERNEL);
if (!ch_info)
return ERR_PTR(-ENOMEM);