]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/virtchnl: fix application of sizeof to pointer
authorGustavo A R Silva <garsilva@embeddedor.com>
Wed, 18 Oct 2017 20:34:25 +0000 (15:34 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 27 Nov 2017 21:50:35 +0000 (13:50 -0800)
commit9a3ee6796fd629f657d83a45a9c28f9c67bc9f2a
tree46fa929e068861bba227fec36f45498fa6d8a9a6
parentb1422024c489fc7af97276deb21be92bfa30e1cf
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@embeddedor.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c