From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B872C433E0 for ; Mon, 1 Jun 2020 04:25:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 060532074B for ; Mon, 1 Jun 2020 04:25:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590985538; bh=j5jBspOPRRyK89NladxWTeYhp7KqBe+iA6sF8n3bGvY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=UPeFLDBlpafsgsqQtEQjjwIj/wJ9Rd0oUJFaBBskEkDcxNXKJu67LouwT4Jpr+7H+ vVSgW1mP4X2cz2QCzf6d7O3bqBgUwy6V/VXT/QZ8/4kiGY1J6r5wS57FB6EOIEJJqy 36tSspFejcCuXJxQ+bc6xOz7o7vfnpkXUppeaMFc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725946AbgFAEZh (ORCPT ); Mon, 1 Jun 2020 00:25:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:36026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbgFAEZg (ORCPT ); Mon, 1 Jun 2020 00:25:36 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C7289206C3; Mon, 1 Jun 2020 04:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590985536; bh=j5jBspOPRRyK89NladxWTeYhp7KqBe+iA6sF8n3bGvY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ctMK8DU8Kes5cmCcdUsbGl5ssqIeYxk+5Cq1f6NFLGnPQTEd9MHfLRZxkfLmwV023 M63vU7FyJB0FuaA89xohVD9RGEjfAjqn3xQF7+RgolQqN0jvhJOQVWSqiYkDMTaMsw Ujcx/KjXOULn2HAbD7SZIMecHa7x94ZvU+S2cRpo= Date: Mon, 1 Jun 2020 07:25:32 +0300 From: Leon Romanovsky To: Dan Carpenter Cc: Lijun Ou , Xi Wang , "Wei Hu(Xavier)" , Weihang Li , Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] RDMA/hns: Uninitialized variable in modify_qp_init_to_rtr() Message-ID: <20200601042532.GB34024@unreal> References: <20200529083918.GA1298465@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200529083918.GA1298465@mwanda> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 29, 2020 at 11:39:18AM +0300, Dan Carpenter wrote: > The "dmac" variable is used before it is initialized. > > Fixes: 494c3b312255 ("RDMA/hns: Refactor the QP context filling process related to WQE buffer configure") > Signed-off-by: Dan Carpenter > --- > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky