Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3103304ybb; Mon, 6 Apr 2020 02:04:13 -0700 (PDT) X-Google-Smtp-Source: APiQypKeLTk0FwF0IxYXjNhrlAKb0AC7AzDjZB75QOP+zN3yl0QDEXe7WpGOsbhfcE2yHseg+MAK X-Received: by 2002:a4a:c807:: with SMTP id s7mr956989ooq.78.1586163853137; Mon, 06 Apr 2020 02:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586163853; cv=none; d=google.com; s=arc-20160816; b=e7Pr14LzEmL3SIrrkpRYUXjeg5INIyTX6FgLB2zCq76DBv9FtctEwpb5ykbBQ/zXT5 72f/ZThTUDl05RObda3N+itWyf9e5C3VraD960msY3p/1GOmi3+a0OMkHurNbiSuPZZh 45eXl7Mhumb6fkz0/4aO0fbgOBOhsLMft7MleDIH1Cy7hYQAxqQ4OSkP0yZH6ViBt4U6 XapS+hHjFf8BmWBv/XC/HfiCXkN1EdQJBxMQyOP10dx868wWzj51+y/R3lu+iXUXhwx0 98kMoQnuHdYNObYqLUYwkb8nVkl8e5oLcXFT9vVZmoPN/7NAWURQRweFliAgZ0/hJCNu aV0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pPm6etZ3DUUwdeDCq5weBWVRzrJKUcDMh1m6LaRUmg0=; b=vHjJKw+pEUivBt4hAHfYhaTHrMmK2whEUVWnLQYicqaCMX50lXrztQS7kUtdo2RCrn q6XXOAl+h7MuKw2di5zfG+CdF+2jwQv0YJt8k+4R5r+efZXuUfhT0Hyn4+ejN8Yw8NSF gxWqRQEwMWhYaQhEzpbo3zsXEd2UrB79YoQz9LyuOsPTSyLrJU9TvWfjLJxvbuELMn6J GfyErq4x+10n6bgqQ6YEgn+xLYYKKrVKlTjrOMDbhbGglijfZpS41fB67222Jz8ofEwk UMsgf6zVRN6pJv3XEaC/ShD2lNSmfI5+PvLQsHLlZQ4WWQa/WvERxoB0D1Y3vIXuiSvp txRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RO6bTnl9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190si7410272oib.146.2020.04.06.02.03.52; Mon, 06 Apr 2020 02:04:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RO6bTnl9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbgDFJBx (ORCPT + 99 others); Mon, 6 Apr 2020 05:01:53 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:42532 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbgDFJBx (ORCPT ); Mon, 6 Apr 2020 05:01:53 -0400 Received: by mail-io1-f68.google.com with SMTP id y17so12843583iow.9 for ; Mon, 06 Apr 2020 02:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pPm6etZ3DUUwdeDCq5weBWVRzrJKUcDMh1m6LaRUmg0=; b=RO6bTnl9ZO8chRFxwBeCgpSPjiaXGSo/VIogGReccYaReJrAqlGbeuPXi1/pb4+D// 8TT4Lv9F13EkLo1Gwk60cf0zhFjSrwuT6Ul+RFDalmwEh5ktCIw1nTvXsuLpMcrx2nGg CIbYnUxlAtzBZ1ZjFl3/iLVRzXV0p27M19WUsjeJn29dtx1eNTXiDnapuGtguKXqBW0r 4S8aYm8e1cLhhM9agl0Z7zlIiq4GkfmWD+QWL/js/9UrbZ+Rnrhunypu3uGV7EB2oSN5 Vg3wtiIIjMH+vQOajOslPnZDUii4fDuMSTIzExnmx3lbfIYqMFIyRIS4LxBIsYwoaBVR iaWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pPm6etZ3DUUwdeDCq5weBWVRzrJKUcDMh1m6LaRUmg0=; b=APTy7r2ngT0t0JX+4MrUrREf6jt3Gwj14LPZ2TD6nbY2Df5QWmR41nmB8zBs0IgGXp HlN1GSclgM1FlSflhobEzh17E+vTSr8sGSbHvGmGTyn9D/FigsGYwTkazLLbvm/LkllR E/ewep9NLhzd5TPmDSbYz3s1m5NHSCumQXhSWNWh4+/1U8f9o62QFJwBZGJZJpDBpM4r Y6g+4T1Kn1ZKKnz8ZXBu69rZHluXXJLNulYdRIpIfvYVdsUOgzpz62KZGW9TDvmDabtr /CFQnD5ThsIaQH3vEmAk8Qn+43I4IkQnTGLHvCJ5+1lm0sBIVkizO5OSmxU7FroCIF1B Hi+A== X-Gm-Message-State: AGi0PuZgG15Dnf7SYdsKm3nkYpH6vxO++8lTXF/p9kv40UPDD1wfvE0N LotEaXcIYLuTZxoBNwssGp2f+r2jaxftTkMGkxo= X-Received: by 2002:a02:390b:: with SMTP id l11mr19599417jaa.111.1586163712467; Mon, 06 Apr 2020 02:01:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Oliver O'Halloran" Date: Mon, 6 Apr 2020 19:01:41 +1000 Message-ID: Subject: Re: [PATCH v3] powerpc/powernv: add NULL check after kzalloc in opal_add_one_export To: Qiujun Huang Cc: Markus Elfring , LKML , Paul Mackerras , Thomas Gleixner , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 6, 2020 at 11:15 AM Qiujun Huang wrote: > > On Mon, Apr 6, 2020 at 3:06 AM Markus Elfring wro= te: > > > > > Here needs a NULL check. > quite obvious? > > > > I find this change description questionable > > (despite of a reasonable patch subject). > > > > > > > Issue found by coccinelle. > > > > Would an information like =E2=80=9CGenerated by: scripts/coccinelle/nul= l/kmerr.cocci=E2=80=9D > > be nicer? > Yeah, but I think It was enough. I didn't know we had that script in the kernel tree so I think it's a good to mention that you used it. It might even help idiots like me who write this sort of bug. > > Will a patch change log be helpful here? > I realized I should write some change log, and the change log was meaning= less. > So I left it blank. The changelog is fine IMO. The point of a changelog is to tell a reader doing git archeology why a change happened and this is sufficent for that. Reviewed-by: Oliver O'Halloran