Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp917494pxb; Wed, 1 Sep 2021 12:38:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy12VAuAaWeUObi1CEfAR0ejz2gGKvwAPnTF0rWJZKk1nKQwU6mN7F1pqvKaETfS+p06sXd X-Received: by 2002:a05:6638:50f:: with SMTP id i15mr1045157jar.79.1630525097098; Wed, 01 Sep 2021 12:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630525097; cv=none; d=google.com; s=arc-20160816; b=dHmAsuMbh0UtotYzpLwOoqwuj/NXBb99w69wsKnF7cw1z21LUmUvB0UDDV7kprZKw7 QJk8E3MgntOmYyvaBf/ElnI+FoGa2iK5s+eC47ENEbz8nZSNrqbjJhh09aU1qWHS2XHV dlEeJQ/wj1hNVlcWqt9Ihhvb8odB2+SvU0xQjlLZq0/WIWcF6uyjZNh3GCNxAapLEL34 MU5YfOLap7Kok+zKwOr4nBce+zTNrd/Xfcx6NEM+ZavmFYUIA11VqTd0ngMT0QKZLkDE JWIsi/lBRQvLMRJts1RP0H4xT6v5jv8iqU3W9ED+irpuyJNoJdPhtocmZMM4jyFusY5x VQBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1ZGHh/xv8seTbi1CqXdUmjjJdneOej4sfUXimf9BUlo=; b=kX7oH1gbci/cxZ4Ma0CJtuteTJNZR9Xb+L23xqf3+Gsu4ZV0siKLJ2E0CUinJlSSuV lIcDNMlQ9F3rOUTzy9XtusTR1EvFQZmQXrU29jtczBRXwxnSjkVPI67btkXi6qEmwAHr qLmNEiA4klEDmXlOhLihwJBeJANyrhkaDY+UTbHEWT3oPV8bouji3ac8JyJEAAZYs65e z92v1rpBNK2MdHgLwBfNole4BXffvJzg/S9V+vQnCEIGW//PX5DMVD/9gMtuEwZs9HkS ZEQTG2g6klT31/Prj06odEm6sIrj2iVlO3OdPsALU+ujHkScqzkObdD4X3UIhMWIfkjT UWMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="CW/3GlSN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si341526jam.67.2021.09.01.12.38.05; Wed, 01 Sep 2021 12:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="CW/3GlSN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345900AbhIAMpK (ORCPT + 99 others); Wed, 1 Sep 2021 08:45:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:42458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344065AbhIAMkg (ORCPT ); Wed, 1 Sep 2021 08:40:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9AF8561155; Wed, 1 Sep 2021 12:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1630499808; bh=F9yoIotIzFik7ysVZVflN4Wd+6wIU7YL3+6ONdX9auI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CW/3GlSN4ruQNp9q4Y3wmzJc0RPXwCgIm4TaovYp/bX6tjtO+MVopGe17Q/hQqUry CvwkEuaKs/a3zbnNO3tRCuAJGG+9DC5O+stElpkTTju36+sYHeAd6N2QBIHjX8xv0+ 9m+tkfDDAZgM20/3tGqZlAFvoPAPl9DyNIU09aJw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, TOTE Robot , Ariel Elior , Shai Malin , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 063/103] qed: Fix null-pointer dereference in qed_rdma_create_qp() Date: Wed, 1 Sep 2021 14:28:13 +0200 Message-Id: <20210901122302.689525134@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210901122300.503008474@linuxfoundation.org> References: <20210901122300.503008474@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shai Malin [ Upstream commit d33d19d313d3466abdf8b0428be7837aff767802 ] Fix a possible null-pointer dereference in qed_rdma_create_qp(). Changes from V2: - Revert checkpatch fixes. Reported-by: TOTE Robot Signed-off-by: Ariel Elior Signed-off-by: Shai Malin Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_rdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_rdma.c b/drivers/net/ethernet/qlogic/qed/qed_rdma.c index da864d12916b..4f4b79250a2b 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_rdma.c +++ b/drivers/net/ethernet/qlogic/qed/qed_rdma.c @@ -1285,8 +1285,7 @@ qed_rdma_create_qp(void *rdma_cxt, if (!rdma_cxt || !in_params || !out_params || !p_hwfn->p_rdma_info->active) { - DP_ERR(p_hwfn->cdev, - "qed roce create qp failed due to NULL entry (rdma_cxt=%p, in=%p, out=%p, roce_info=?\n", + pr_err("qed roce create qp failed due to NULL entry (rdma_cxt=%p, in=%p, out=%p, roce_info=?\n", rdma_cxt, in_params, out_params); return NULL; } -- 2.30.2