[Intel-wired-lan] [PATCH] i40e/virtchnl: fix application of sizeof to pointer

Bowers, AndrewX andrewx.bowers at intel.com
Mon Nov 27 21:19:26 UTC 2017


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Gustavo A. R. Silva
> Sent: Wednesday, October 18, 2017 1:34 PM
> To: Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>
> Cc: netdev at vger.kernel.org; intel-wired-lan at lists.osuosl.org; linux-
> kernel at vger.kernel.org; Gustavo A. R. Silva <garsilva at embeddedor.com>
> Subject: [Intel-wired-lan] [PATCH] i40e/virtchnl: fix application of sizeof to
> pointer
> 
> sizeof when applied to a pointer typed expression gives the size of the
> pointer.
> 
> The proper fix in this particular case is to code sizeof(*vfres) instead of
> sizeof(vfres).
> 
> This issue was detected with the help of Coccinelle.
> 
> Signed-off-by: Gustavo A. R. Silva <garsilva at embeddedor.com>
> ---
> This code was tested by compilation only.
> 
>  drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list