Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad202348 authored by Steve Wise's avatar Steve Wise Committed by Doug Ledford
Browse files

iw_cxgb3: initialize ibdev.iwcm->ifname for port mapping



The IWCM uses ibdev.iwcm->ifname for registration with the iwarp
port map daemon.  But iw_cxgb3 did not initialize this field which
causes intermittent registration failures based on the contents of the
uninitialized memory.

Fixes: c1340e8a ("iw_cxgb3: support for iWARP port mapping")
Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 851d7b6b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1390,6 +1390,8 @@ int iwch_register_device(struct iwch_dev *dev)
	dev->ibdev.iwcm->add_ref = iwch_qp_add_ref;
	dev->ibdev.iwcm->rem_ref = iwch_qp_rem_ref;
	dev->ibdev.iwcm->get_qp = iwch_get_qp;
	memcpy(dev->ibdev.iwcm->ifname, dev->rdev.t3cdev_p->lldev->name,
	       sizeof(dev->ibdev.iwcm->ifname));

	ret = ib_register_device(&dev->ibdev, NULL);
	if (ret)