[Pkg-ofed-commits] [libfabric] 74/123: usnic: usdf_msg.c: Fix handling of erroneous packets in EP_MSG.
Ana Beatriz Guerrero López
ana at moszumanska.debian.org
Sat Oct 22 12:28:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
ana pushed a commit to annotated tag v1.1.1
in repository libfabric.
commit ec0b64a3f9d7fa712fd9a5223e0ab738b38838b4
Author: Ben Turrubiates <bturrubi at cisco.com>
Date: Tue Sep 15 16:46:58 2015 -0700
usnic: usdf_msg.c: Fix handling of erroneous packets in EP_MSG.
Drop packets that are flagged as erroneous.
Signed-off-by: Ben Turrubiates <bturrubi at cisco.com>
(cherry picked from commit f13f577c5cd9de32d507c8214d75cecb8838bf29)
---
prov/usnic/src/usdf_msg.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/prov/usnic/src/usdf_msg.c b/prov/usnic/src/usdf_msg.c
index 36eb56c..b3075ce 100644
--- a/prov/usnic/src/usdf_msg.c
+++ b/prov/usnic/src/usdf_msg.c
@@ -1127,6 +1127,9 @@ usdf_msg_handle_recv(struct usdf_domain *udp, struct usd_completion *comp)
}
rx = ep->ep_rx;
+ if (comp->uc_status != USD_COMPSTAT_SUCCESS)
+ goto dropit;
+
switch (opcode) {
case RUDP_OP_ACK:
usdf_msg_rx_ack(ep, pkt);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/libfabric.git
More information about the Pkg-ofed-commits
mailing list