Message ID | alpine.DEB.2.21.1903072235080.2558@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ath11k: fix noderef.cocci warnings | expand |
Julia Lawall <julia.lawall@lip6.fr> writes: > From: kbuild test robot <lkp@intel.com> > > sizeof when applied to a pointer typed expression gives the size of > the pointer > > Generated by: scripts/coccinelle/misc/noderef.cocci > > Fixes: 258bbf525e65 ("ath11k: add driver") > Signed-off-by: kbuild test robot <lkp@intel.com> > Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Doesn't apply for some reason.
On Fri, 8 Mar 2019, Kalle Valo wrote: > Julia Lawall <julia.lawall@lip6.fr> writes: > > > From: kbuild test robot <lkp@intel.com> > > > > sizeof when applied to a pointer typed expression gives the size of > > the pointer > > > > Generated by: scripts/coccinelle/misc/noderef.cocci > > > > Fixes: 258bbf525e65 ("ath11k: add driver") > > Signed-off-by: kbuild test robot <lkp@intel.com> > > Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> > > Doesn't apply for some reason. OK, I'll check on these. Thanks. julia
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -275,7 +275,7 @@ static void ath11k_dp_rx_tid_del_func(st if (status == HAL_REO_CMD_DRAIN) goto free_desc; - elem = kzalloc(sizeof(elem), GFP_ATOMIC); + elem = kzalloc(sizeof(*elem), GFP_ATOMIC); if (!elem) { ath11k_warn(ab, "failed to allocate memory for cache flush element\n"); goto free_desc;