[Pkg-ofed-commits] [libfabric] 06/123: prov/psm: fix coverity issue #29754 -- dereference after null check

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Sat Oct 22 12:28:23 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 2de9674a65a346ee212b76aa376704202c65fd76
Author: Jianxin Xiong <jianxin.xiong at intel.com>
Date:   Thu Aug 27 13:54:09 2015 -0700

    prov/psm: fix coverity issue #29754 -- dereference after null check
    
    Signed-off-by: Jianxin Xiong <jianxin.xiong at intel.com>
---
 prov/psm/src/psmx_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/prov/psm/src/psmx_init.c b/prov/psm/src/psmx_init.c
index cf6fa12..a3ce855 100644
--- a/prov/psm/src/psmx_init.c
+++ b/prov/psm/src/psmx_init.c
@@ -361,8 +361,8 @@ static int psmx_getinfo(uint32_t version, const char *node, const char *service,
 
 	psmx_info->rx_attr->caps = psmx_info->caps;
 	psmx_info->rx_attr->mode = psmx_info->mode;
-	psmx_info->rx_attr->op_flags = (hints && hints->rx_attr && hints->tx_attr->op_flags)
-					? hints->tx_attr->op_flags : 0;
+	psmx_info->rx_attr->op_flags = (hints && hints->rx_attr && hints->rx_attr->op_flags)
+					? hints->rx_attr->op_flags : 0;
 	psmx_info->rx_attr->msg_order = FI_ORDER_SAS;
 	psmx_info->rx_attr->comp_order = FI_ORDER_NONE;
 	psmx_info->rx_attr->total_buffered_recv = ~(0ULL); /* that's how PSM handles it internally! */

-- 
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