diff mbox series

[rdma-next] RDMA/i40iw: Make sure to initialize ib_device_ops

Message ID 20181218205507.10810-1-kamalheib1@gmail.com (mailing list archive)
State Accepted
Commit b81a327dbc0d07c219ac48b7daf155ea6a51672b
Delegated to: Jason Gunthorpe
Headers show
Series [rdma-next] RDMA/i40iw: Make sure to initialize ib_device_ops | expand

Commit Message

Kamal Heib Dec. 18, 2018, 8:55 p.m. UTC
The initialization of the ib_device_ops was dropped by mistake when
rebasing the ib_device_ops series, this patch fixes that.

Fixes: 15644f57cb66 ("RDMA/i40iw: Initialize ib_device_ops struct")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
---
 drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jason Gunthorpe Dec. 18, 2018, 9:14 p.m. UTC | #1
On Tue, Dec 18, 2018 at 10:55:07PM +0200, Kamal Heib wrote:
> The initialization of the ib_device_ops was dropped by mistake when
> rebasing the ib_device_ops series, this patch fixes that.
> 
> Fixes: 15644f57cb66 ("RDMA/i40iw: Initialize ib_device_ops struct")
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
>  drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
> index 9e42ac2db3ca..475f32cf447e 100644
> +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
> @@ -2816,6 +2816,7 @@ static struct i40iw_ib_device *i40iw_init_rdma_device(struct i40iw_device *iwdev
>  	iwibdev->ibdev.iwcm->destroy_listen = i40iw_destroy_listen;
>  	memcpy(iwibdev->ibdev.iwcm->ifname, netdev->name,
>  	       sizeof(iwibdev->ibdev.iwcm->ifname));
> +	ib_set_device_ops(&iwibdev->ibdev, &i40iw_dev_ops);

Shame this didn't get found a day earlier :(

Applied to for-next, thanks

Jason
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
index 9e42ac2db3ca..475f32cf447e 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
@@ -2816,6 +2816,7 @@  static struct i40iw_ib_device *i40iw_init_rdma_device(struct i40iw_device *iwdev
 	iwibdev->ibdev.iwcm->destroy_listen = i40iw_destroy_listen;
 	memcpy(iwibdev->ibdev.iwcm->ifname, netdev->name,
 	       sizeof(iwibdev->ibdev.iwcm->ifname));
+	ib_set_device_ops(&iwibdev->ibdev, &i40iw_dev_ops);
 
 	return iwibdev;
 }