Skip to content
Commit c30bf8ce authored by Gustavo A R Silva's avatar Gustavo A R Silva Committed by Jeff Kirsher
Browse files

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: default avatarGustavo A R Silva <garsilva@embeddedor.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent d3fe1e01
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment