From patchwork Tue Nov 21 15:27:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 10068495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AEC766022E for ; Tue, 21 Nov 2017 15:27:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F5F921FAC for ; Tue, 21 Nov 2017 15:27:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9350828396; Tue, 21 Nov 2017 15:27:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 106582656B for ; Tue, 21 Nov 2017 15:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228AbdKUP1U (ORCPT ); Tue, 21 Nov 2017 10:27:20 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:42263 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbdKUP1T (ORCPT ); Tue, 21 Nov 2017 10:27:19 -0500 Received: by mail-it0-f66.google.com with SMTP id n134so2422217itg.1 for ; Tue, 21 Nov 2017 07:27:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=obaPR7QcLuIAm6cXf2Un1mh2C/LccuDet+86+KapE2U=; b=lrmmELm1qlKnfBeSsImGWADJ5dm/I6Q3vDOAr+JBIg5fSu2m3CGdIE+7bOmLHXfej6 4Lyc/MdkReax6Yayf52ABVR8DNZCiGuV2hByfwTQvypvrTD+dHxxoqy0YrECFspCKmCu gem3gjHk22prQbF5URxMqDqmUHNF+2THNDZPipl9B1ErWUCrhtGUb5h7EdV3LgRiu+tm wNa/gpkk+0QHqFBh/tEQLGjhSUTBLpWKK4vcxVx/thzIpY5afNZXt5rsF0ZQdVwzkuNE y5XBxbO7XjJwTSCcs8O6kKwOIh7ND7/sG9G5ncZsVn0xKGeVe/zdieGYBnV5sbJLsXun uDuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=obaPR7QcLuIAm6cXf2Un1mh2C/LccuDet+86+KapE2U=; b=JBWAvm8qYOeerUqdD895vprrksdr7NnynfoMRLVx0Sdk/sFD/Y0es1Z3Xf7msf1pv0 PHSwWnJ3OmGgMi6n8eLX5b0UCJrTfk4m/+AiYdBcovdN+qKtNbI1RYXqWS170ZmTOyES h5zmB3am9NUBnfmDhnmQMpZBIyfniZIgdAEiXfXUT693KlQbQEkI9YK7JII8rVpcVRmc aylVjzfC+skmZLSU30rBmIKJFZiZeJ+mkrI0/mPt76l6dmf5hHllTAUMzk7SvSqcPqOU E8a6tV9I9urGSWmsx8kGNiTkzjk3pFczImKCiW5sDwBg919XdWTjUTJrI115ueJVVySu ziqQ== X-Gm-Message-State: AJaThX4WCx6fn+r4XCdSBw9SKdtUzZF0XGbnum+bL9WB+V5rIgtm/mOT /VqX2ZJfizdqAJMRT7aKbDq+XGO9l6U= X-Google-Smtp-Source: AGs4zMZYj/yOLI/qAaCMrNiC6+C+6B7T5ZGcOghaLCYyO2t35LTIqfeqLx/HQK/2k8fS+IvjMejN4w== X-Received: by 10.36.248.6 with SMTP id a6mr2421466ith.11.1511278038567; Tue, 21 Nov 2017 07:27:18 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [70.74.179.152]) by smtp.gmail.com with ESMTPSA id n184sm781362itg.9.2017.11.21.07.27.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Nov 2017 07:27:18 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1eHASD-0004hI-FN for linux-rdma@vger.kernel.org; Tue, 21 Nov 2017 08:27:17 -0700 Date: Tue, 21 Nov 2017 08:27:17 -0700 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org Subject: [PATCH rdma-core] cxgb4: Add missing null termination of hca_table Message-ID: <20171121152717.GA18003@ziepe.ca> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Otherwise there are random crashes during device discovery. Signed-off-by: Jason Gunthorpe --- 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 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 = {