From patchwork Wed Oct 1 11:49:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Droneaud X-Patchwork-Id: 5011421 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C73C3BEEA6 for ; Wed, 1 Oct 2014 11:56:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 053F820155 for ; Wed, 1 Oct 2014 11:56:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1CF282014A for ; Wed, 1 Oct 2014 11:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751196AbaJAL4x (ORCPT ); Wed, 1 Oct 2014 07:56:53 -0400 Received: from smtp3-g21.free.fr ([212.27.42.3]:51387 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbaJAL4x (ORCPT ); Wed, 1 Oct 2014 07:56:53 -0400 Received: from localhost.localdomain (unknown [37.163.159.60]) by smtp3-g21.free.fr (Postfix) with ESMTP id 627CEA627E; Wed, 1 Oct 2014 13:56:17 +0200 (CEST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.14.8/8.14.8) with ESMTP id s91Bshap013350; Wed, 1 Oct 2014 13:56:23 +0200 Received: (from ydroneaud@localhost) by localhost.localdomain (8.14.8/8.14.8/Submit) id s91Bp07p013040; Wed, 1 Oct 2014 13:51:00 +0200 From: Yann Droneaud To: Roland Dreier Cc: linux-rdma@vger.kernel.org, Dotan Barak , Yann Droneaud , Hadar Hen Zion , Or Gerlitz , Matan Barak Subject: [PATCH libibverbs 8/9] ibv_cmd_create_flow(): initialize flow_id->comp_mask Date: Wed, 1 Oct 2014 13:49:38 +0200 Message-Id: <91b57c9e4ef5f582df338a0e96ef4856f63c89bf.1412163687.git.ydroneaud@opteya.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ibv_cmd_create_flow() allocates and returns a struct ibv_flow, but doesn't initialize its comp_mask field. Link: http://marc.info/?i=cover.1412163687.git.ydroneaud@opteya.com Fixes: 389de6a6ef4 ('Add receive flow steering support') Cc: Hadar Hen Zion Cc: Or Gerlitz Cc: Matan Barak Signed-off-by: Yann Droneaud --- src/cmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd.c b/src/cmd.c index dc155d6bf4c7..2f039f6852bb 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1372,6 +1372,7 @@ struct ibv_flow *ibv_cmd_create_flow(struct ibv_qp *qp, flow_id->context = qp->context; flow_id->handle = resp.flow_handle; + flow_id->comp_mask = 0; return flow_id; err: free(flow_id);