* RE: [PATCH] infiniband:cxgb4:Fix if statement check in the function pick_local_ip6adddrs [not found] <1440644459-13595-1-git-send-email-xerofoify@gmail.com> @ 2015-08-27 14:18 ` Steve Wise 2015-09-03 18:05 ` Doug Ledford 1 sibling, 0 replies; 3+ messages in thread From: Steve Wise @ 2015-08-27 14:18 UTC (permalink / raw) To: 'Nicholas Krause', swise-ut6Up61K2wZBDgjK7y7TUQ Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA, sean.hefty-ral2JQCrhuEAvxtiuMwx3w, hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Acked-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] infiniband:cxgb4:Fix if statement check in the function pick_local_ip6adddrs @ 2015-08-27 14:18 ` Steve Wise 0 siblings, 0 replies; 3+ messages in thread From: Steve Wise @ 2015-08-27 14:18 UTC (permalink / raw) To: 'Nicholas Krause', swise Cc: dledford, sean.hefty, hal.rosenstock, linux-rdma, linux-kernel Acked-by: Steve Wise <swise@opengridcomputing.com> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] infiniband:cxgb4:Fix if statement check in the function pick_local_ip6adddrs [not found] <1440644459-13595-1-git-send-email-xerofoify@gmail.com> [not found] ` <1440644459-13595-1-git-send-email-xerofoify-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-09-03 18:05 ` Doug Ledford 1 sibling, 0 replies; 3+ messages in thread From: Doug Ledford @ 2015-09-03 18:05 UTC (permalink / raw) To: Nicholas Krause, swise Cc: sean.hefty, hal.rosenstock, linux-rdma, linux-kernel [-- Attachment #1: Type: text/plain, Size: 1409 bytes --] On 08/26/2015 11:00 PM, Nicholas Krause wrote: > This fixes a if statement checking the return value of the function > get_lladdr for success in the function pick_local_ip6addrs to instead > of directly checking the return value of this call check the opposite > as get_lladdr returns zero for success which would incorrectly make > this if statement block not execute with the current if statement > check. > > Signed-off-by: Nicholas Krause <xerofoify@gmail.com> Thanks, applied. > --- > drivers/infiniband/hw/cxgb4/cm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c > index 3ad8dc7..b85b94b 100644 > --- a/drivers/infiniband/hw/cxgb4/cm.c > +++ b/drivers/infiniband/hw/cxgb4/cm.c > @@ -2976,7 +2976,7 @@ static int pick_local_ip6addrs(struct c4iw_dev *dev, struct iw_cm_id *cm_id) > struct sockaddr_in6 *la6 = (struct sockaddr_in6 *)&cm_id->local_addr; > struct sockaddr_in6 *ra6 = (struct sockaddr_in6 *)&cm_id->remote_addr; > > - if (get_lladdr(dev->rdev.lldi.ports[0], &addr, IFA_F_TENTATIVE)) { > + if (!get_lladdr(dev->rdev.lldi.ports[0], &addr, IFA_F_TENTATIVE)) { > memcpy(la6->sin6_addr.s6_addr, &addr, 16); > memcpy(ra6->sin6_addr.s6_addr, &addr, 16); > return 0; > -- Doug Ledford <dledford@redhat.com> GPG KeyID: 0E572FDD [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 884 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-03 18:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1440644459-13595-1-git-send-email-xerofoify@gmail.com>
[not found] ` <1440644459-13595-1-git-send-email-xerofoify-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-08-27 14:18 ` [PATCH] infiniband:cxgb4:Fix if statement check in the function pick_local_ip6adddrs Steve Wise
2015-08-27 14:18 ` Steve Wise
2015-09-03 18:05 ` Doug Ledford
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.