Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3117743ybb; Mon, 6 Apr 2020 02:25:19 -0700 (PDT) X-Google-Smtp-Source: APiQypLK5KnNWMZhWUjyRUnAUhTepkkwcfykMDPiRauAy0waACC520smdlYegPjYLMJm4uw1BPka X-Received: by 2002:a9d:67d7:: with SMTP id c23mr18031102otn.280.1586165118951; Mon, 06 Apr 2020 02:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586165118; cv=none; d=google.com; s=arc-20160816; b=KtF+yaWfl+0kh/Wjb7KqfgeMh3+AieDvRhOuUjjNTWW14AE6QIVjp+aldZjemIWa3a 9DZIIAqAK/rOVBiyXS0LI6CeRmTlQsl7VN2yp+ncqiiMXhz9jM8KFUIf3SxfRsPwWQ6g aWNXCr6KUs9WN1eixmUEM1WtNijXQxvxmjYJ8oSxeb7zAtxaCPQbx61qHPr4690/WhwO llvUa/Xxe9woKBSurZY8s9SF4miDIyWZRFD+HPAsBJVv/bKfGp6XTXA52DjvWysRv+Sx /UrqCXwtJBPTB/TdWs6JjEhZZSkoiubmxuPufGcx2S3op30AEGSz9TE/ceeJSuWHh6Oz XxVw== 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=qFoAcV0zVN3vQ6o7xZAt9SMFc7osLXFVRI1rCfHEWUM=; b=y5599XaQfvbSoDN6WUFd74+/bYxZCcsCIaSAhQvLYnhr+3fwhd2/JK73Ae7NqFqERi f97NdR6l55aq2vH+dX37hMeZRcRW5LRwo0bKbHggfn3EXYICHB4anh4j4VK0DzHZcRlW kXH/fUIDOQ2Rzbtfa6Ewt7zbWM+vf0CeXDvfHolas/+kUTi9Zo0A+rrgzSqO1rBza1Oo GPbyHFJOJxanez+aSawkdr7RLzEfbGJbfqeFkoHwhAs71rHiTmhEeCSYWutiwsQrveMs vl78jF7xfewuj+pXTjmWcjvmIy8OvSE1Hrtr9YiEeVpycLK11AjQc2cFcuFKyZtch9oQ +rKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vBH/KyGF"; 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 n125si7127812oib.97.2020.04.06.02.25.06; Mon, 06 Apr 2020 02:25:18 -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="vBH/KyGF"; 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 S1726788AbgDFJXi (ORCPT + 99 others); Mon, 6 Apr 2020 05:23:38 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:37074 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbgDFJXi (ORCPT ); Mon, 6 Apr 2020 05:23:38 -0400 Received: by mail-io1-f67.google.com with SMTP id n20so1154129ioa.4 for ; Mon, 06 Apr 2020 02:23:37 -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=qFoAcV0zVN3vQ6o7xZAt9SMFc7osLXFVRI1rCfHEWUM=; b=vBH/KyGFA+wvslkjWtJfq0ZgdmNm1mkxPQSFGPHQqm4PwZvPJdIWwUH0+STnDfb3aQ qZJX0t14vi0s0yKDn6bweipq3CLN0dJCBG1vEQ8C/dbFw56G3CJR1dyg5YbofBDlXXe2 Fz0KDk0/zL5pCnDrX7X4sGe6AHEiZD0naFgGSedu6+Bz4/4l3R084+wcnzfE1Cqo9/lw Xb6jWCan2j/6zn5/2mJxy/ULAv6ld9mnHrEBISgeJJdqnBC3xKqkbceZQeo9KcMhRULq a6kEFtRXaAW/YqngtKEQ8+jNdHMVeb2SRMUiVpSgkEcbE/93gzjYkMlGYy3QL23NrVJx Q9/w== 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=qFoAcV0zVN3vQ6o7xZAt9SMFc7osLXFVRI1rCfHEWUM=; b=sF8pV8cgOahl2MArBPy7mpxzAry3993SVlucYAA+gg80LeQ3uGBwFXZ3Rzja0VnDPa Yj57Jb/gUw0aEdOcwUATRmtP3hNGIrTCukCwT6vGSlua5PrtzxUKMYqlSmB2/9RtmGCo hHYZlEgP+GWFNiv55dWGKc2lkKiA9VwdHhAPMvmpIOTflZoFgEbhZ2kmYojQQ9ufUpw/ nu5wl1frbaomgSJZN592ihT9WmJGXCPrqLLX0uXZqz4xyWZ3ENc1lG4wrcml15Vpky7j OrXxcY+c+usdpOOeHq59G/xypXl+5nDQ1vQq+IcKEo94e3bf0Cz4qWxjB8eoBYC7c5/a wtiQ== X-Gm-Message-State: AGi0PuZCX+gSBzi+Go/JVpKB5E/v7M2xRIxore1giaxL5sC0ZQL8vLId niGNsaB4ScQIEOcjAgvdXS0Q7eHVah/bVlTL92reOTTC X-Received: by 2002:a5d:984b:: with SMTP id p11mr18749986ios.175.1586165017572; Mon, 06 Apr 2020 02:23:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Qiujun Huang Date: Mon, 6 Apr 2020 17:23:24 +0800 Message-ID: Subject: Re: [PATCH v3] powerpc/powernv: add NULL check after kzalloc in opal_add_one_export To: "Oliver O'Halloran" 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 5:01 PM Oliver O'Halloran wrote: > > On Mon, Apr 6, 2020 at 11:15 AM Qiujun Huang wrote: > > > > On Mon, Apr 6, 2020 at 3:06 AM Markus Elfring w= rote: > > > > > > > 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/n= ull/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. Yes, I will resend the patch. Thanks :-) > > > > Will a patch change log be helpful here? > > I realized I should write some change log, and the change log was meani= ngless. > > 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. Get that. > > Reviewed-by: Oliver O'Halloran