diff mbox

[rdma-core] cxgb4: Add missing null termination of hca_table

Message ID 20171121152717.GA18003@ziepe.ca (mailing list archive)
State Not Applicable
Headers show

Commit Message

Jason Gunthorpe Nov. 21, 2017, 3:27 p.m. UTC
Otherwise there are random crashes during device discovery.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
---
 providers/cxgb3/iwch.c | 1 +
 1 file changed, 1 insertion(+)

Fix a little typo I made when reworking the init scheme.

https://github.com/linux-rdma/rdma-core/pull/262

Comments

Leon Romanovsky Nov. 22, 2017, 9:43 a.m. UTC | #1
On Tue, Nov 21, 2017 at 08:27:17AM -0700, Jason Gunthorpe wrote:
> Otherwise there are random crashes during device discovery.
>
> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
> ---
>  providers/cxgb3/iwch.c | 1 +
>  1 file changed, 1 insertion(+)
>

Thanks, applied
diff mbox

Patch

diff --git a/providers/cxgb3/iwch.c b/providers/cxgb3/iwch.c
index 3cc1d4c185e97e..da9179fbbe2a8d 100644
--- a/providers/cxgb3/iwch.c
+++ b/providers/cxgb3/iwch.c
@@ -72,6 +72,7 @@  static const struct verbs_match_ent hca_table[] = {
 	HCA(CHELSIO, T3B02, T3B),
 	HCA(CHELSIO, T3C20, T3B),
 	HCA(CHELSIO, S320E, T3B),
+	{},
 };
 
 static struct ibv_context_ops iwch_ctx_ops = {