Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2115328rdb; Thu, 7 Dec 2023 20:34:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFW1QyF9scHuKuFmZs724FrR0kPfIHuC8pCz20Ik9CqqWRiGknT7ViaK4QNaYYq2QiqTxck X-Received: by 2002:a50:c302:0:b0:54c:4837:75a6 with SMTP id a2-20020a50c302000000b0054c483775a6mr2143052edb.82.1702010075783; Thu, 07 Dec 2023 20:34:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702010075; cv=none; d=google.com; s=arc-20160816; b=0I5WE4jOedQnU2CrHDrFpNakzaDtrQE6DKik5z9Mv2OQhYJS8GEY63rZPYgWgIPv8U 1FYHW4jwVQlvq4qokD1fUc1JvidNpckkFgXeWCmUj+xqLk2cWkbxg1w19fRfX2Z2dbfW 3/r1dev24eD63q3H0cYFFkGfJnrtgfx3FImDgpb5+z3QMuiaqZITv5qeZ4Qwd60ET0cQ L0tbZRgiig0HRdFFMO6OIcKDKGTM91KS++CzaKYPJYQf8Okhu/d3+FHxm+w9Nohw+MF3 yWtbZKKKUma4vcZxFWVTZDI5gL5lQhLQumVNCev9qPp7FKORGucGs9rgqQ96HBX65Ztt RMyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=YTiruJs/WsdpO4a8R7EnnqikDZ8fAWQlGGPbSnia4SA=; fh=k8ISi7KY+USJM7F/ae12s5p7hEPltWxlg0GPecFa8i8=; b=hSUyU/coFBG9CT+fOgtzQbNZwz5+5gWdeyLbuAhre4SHaIFX2h4iYZjc6Ycaj0D1No SDbPKPpoRl/k1wMwrg4ZJxlIzRgP+xfxD8T76pe3KuQo+acUCc+vKfXVtvaAs53WsjMc +Re7eyuNgOYF2PMYDFeNLj5SDsvOLlK+n0Z6ETLr4MVALOQXANkL/J1dWD6h+g6SS0cZ iPcWmMSonWtp72pWDiOA+lNoWaH181tTx9zGFm1t7yn4mzQdj4+e+to8bPORJm5SufMr vEgkh/aqv+y1kP9h+4rv67KCPlHsPJ2MuATsayf+LoUPKdH6wvGOlbnaflgoVgmSB/oF x09A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-636-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z14-20020a056402274e00b0054d8c12be8bsi468200edd.467.2023.12.07.20.34.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 20:34:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-636-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7C3411F21159 for ; Fri, 8 Dec 2023 04:34:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F23B5FBFB for ; Fri, 8 Dec 2023 04:34:33 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CEA41712 for ; Thu, 7 Dec 2023 20:07:37 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rBS9E-008IiT-Tu; Fri, 08 Dec 2023 12:07:33 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 08 Dec 2023 12:07:42 +0800 Date: Fri, 8 Dec 2023 12:07:42 +0800 From: Herbert Xu To: Giovanni Cabiddu Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Ahsan Atta , David Guckian Subject: Re: [PATCH] crypto: qat - add NULL pointer check Message-ID: References: <20231128191731.10575-1-giovanni.cabiddu@intel.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231128191731.10575-1-giovanni.cabiddu@intel.com> On Tue, Nov 28, 2023 at 07:17:25PM +0000, Giovanni Cabiddu wrote: > There is a possibility that the function adf_devmgr_pci_to_accel_dev() > might return a NULL pointer. > Add a NULL pointer check in the function rp2srv_show(). > > Fixes: dbc8876dd873 ("crypto: qat - add rp2svc sysfs attribute") > Signed-off-by: Giovanni Cabiddu > Reviewed-by: Ahsan Atta > Reviewed-by: David Guckian > --- > drivers/crypto/intel/qat/qat_common/adf_sysfs.c | 3 +++ > 1 file changed, 3 insertions(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt