ixgbe: initialize bitmap for storing MDD events
Subsystems (2)
PATCH 1/1 ixgbe: initialize bitmap for storing MDD events
Uninitialized bitmap is sent to function which is only setting corresponding bits when MDD event occurs. Heaving random values in this bitmap leads to showing MDD events when there is no such events. Fix it by setting bitmap to all zeroes before calling handle_mdd() function.
Fixes 61cb1bcf7e2a ("ixgbe: check for MDD events")
Signed-off-by Michal Swiatkowski <[email protected]>
---
To be squashed with 61cb1bcf7e2a ("ixgbe: check for MDD events"). The changes are only on dev-queue. There is a bug found by validation. Tony, if you prefer I can send whole series with this fix in. Up to you. Thanks
--- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +1 -0
@@ -1374,6 +1374,7 @@ bool ixgbe_check_mdd_event(struct ixgbe_adapter *adapter)return false;/* Did we have a malicious event */ +bitmap_zero (vf_bitmap,64 ); hw->mac.ops.handle_mdd (hw, vf_bitmap);/* Log any blocked queues and release lock */
Signature · 1 line
2.42.0