net/ixgbe/base: initialize data field in struct buffer
authorGuinan Sun <guinanx.sun@intel.com>
Thu, 9 Jul 2020 08:00:40 +0000 (08:00 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:53 +0000 (06:18 +0200)
commit40543be5376ca415b2a7e196315d0555725b8bdf
tree9d4e1761203af470020f51acf3638d4b8603304b
parent658dfd345fd6f950262c0bbe1cc2b5920e2faf73
net/ixgbe/base: initialize data field in struct buffer

While sending request using ixgbe_hic_unlocked() the data field in
buffer struct is not used. It is set when the struct is overwritten by
FW to deliver the response. To not pass random data to FW the whole
structure should be zeroed before use.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Signed-off-by: Piotr Pietruszewski <piotr.pietruszewski@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/ixgbe/base/ixgbe_x550.c