summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-08-18 11:01:26 +0000
committermav <mav@FreeBSD.org>2016-08-18 11:01:26 +0000
commit49a051d6e3ee3b489187898d61601e6efae50e2c (patch)
tree9540ca38985a9561f3577e6c0b662911eaba2120
parent34021ec4cfdc1efab0b6d2172e4a675968811223 (diff)
downloadFreeBSD-src-49a051d6e3ee3b489187898d61601e6efae50e2c.zip
FreeBSD-src-49a051d6e3ee3b489187898d61601e6efae50e2c.tar.gz
MFC r303510: Clear scratchpad after MSIX negotiation to not leak garbage.
-rw-r--r--sys/dev/ntb/ntb_hw/ntb_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ntb/ntb_hw/ntb_hw.c b/sys/dev/ntb/ntb_hw/ntb_hw.c
index dadad77..6b68ac7 100644
--- a/sys/dev/ntb/ntb_hw/ntb_hw.c
+++ b/sys/dev/ntb/ntb_hw/ntb_hw.c
@@ -2669,6 +2669,7 @@ msix_done:
if (val != NTB_MSIX_RECEIVED)
goto reschedule;
+ intel_ntb_spad_clear(ntb->device);
ntb->peer_msix_good = true;
/* Give peer time to see our NTB_MSIX_RECEIVED. */
goto reschedule;
OpenPOWER on IntegriCloud