summaryrefslogtreecommitdiffstats
path: root/sys/dev/ntb
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-08-18 09:36:06 +0000
committermav <mav@FreeBSD.org>2016-08-18 09:36:06 +0000
commit6b774a5d7e089d57d1ac4127f0b59b7ef4d93e5a (patch)
tree0207e41355914abf2924b6178f747f89e840d4c9 /sys/dev/ntb
parenta37d4a8e47ed7f2a321dabd13a6952dcb7568853 (diff)
downloadFreeBSD-src-6b774a5d7e089d57d1ac4127f0b59b7ef4d93e5a.zip
FreeBSD-src-6b774a5d7e089d57d1ac4127f0b59b7ef4d93e5a.tar.gz
MFC r303510: Clear scratchpad after MSIX negotiation to not leak garbage.
Diffstat (limited to 'sys/dev/ntb')
-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 6e501b3..9962cb2 100644
--- a/sys/dev/ntb/ntb_hw/ntb_hw.c
+++ b/sys/dev/ntb/ntb_hw/ntb_hw.c
@@ -2649,6 +2649,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