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:
parent
652a8550db
commit
f19263cde8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue