]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixgbe: initialize data field in struct buffer
authorGuinan Sun <guinanx.sun@intel.com>
Thu, 9 Jul 2020 08:00:40 +0000 (08:00 +0000)
committerKevin Bowling <kbowling@FreeBSD.org>
Tue, 7 Sep 2021 02:22:12 +0000 (19:22 -0700)
commitb3ebe337ffa06b0f1f460bf8f1e42fb55db77d0b
tree1f9981085ede4ac73785cbe65fe2eb10f838a299
parent8e9f1b239dc00a2375af87c48321f85a1e37c14e
ixgbe: 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>
Approved by: imp
Obtained from: DPDK (40543be5376ca415b2a7e196315d0555725b8bdf)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31621
sys/dev/ixgbe/ixgbe_x550.c