Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2832877ybb; Sun, 5 Apr 2020 18:14:19 -0700 (PDT) X-Google-Smtp-Source: APiQypIMz2D6CaZSV8t83kscothLk3wvqgyRT/+frGVa36dN0IuDVVFinpUnG+4+Cd7sX5UBbUXH X-Received: by 2002:a05:6830:1541:: with SMTP id l1mr15703911otp.297.1586135659804; Sun, 05 Apr 2020 18:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586135659; cv=none; d=google.com; s=arc-20160816; b=X327eNjw0DPAG2phclF/tWohg9rce6ayZKd1efl6OLkwQ7B6AOyHHdY4TP+7q0X+lz i70cYytxgkkMqXBQfKFNPA2t5GW6xrSRUhKWoS5dKHDzMrV2UPES49w5zD3bRjPZ4IL4 /71BUybdj9SyRzAPZAfMGwGKTogyADG77kRKm+WOkyHNY3H0mXw4Ih4vDJIF2B8aV4CW jEgqRK5gBAV7nZIAopyJtcvGTxIi+yYty4JrZvs54zEtTcUfcYyzhRROVcuMP15BFZMs gnsjbJYvg5M4t/WNW3caGvhhG0mGOBTmRy1sRw+gyg+ubrl42ZT1lBRfWR6QKMxohnmB 27aw== 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=Tr1Ryw65VhOvk3m5+ACJJuQ36awxae0foxLzvaXT+Rc=; b=f9TRoDMLDUv8p2qxnD2NSA4prJ+Aoo2nDTBqUe8DgMK3KkLKWQB2iXrC2AkXxjgZtQ rZuh0EpxoiLmLp1DMk2cuInhltcd5p6FsqcsnEc3gXM9/Dh95oKQi0/9yykwqpXCEvZi dFcxBeE2y8gD4cp5Bry5rpxbFBcNpNfDtr3O3h5hpeT3WYiEGbqs6wWBdCRcYnh2g8Yk I/f/PAkAa+vWBfxZrDFTNGk1/kh/vV+AOEW7PEO0abzQtwLGFTIzYoB29npQqNNptleE cgQSyEjqiQX079uADId+CLDbNHQ72IFxYAwS69PLZAkDaI0Prx9i8c7dhq/eBVjLnGJ6 YoHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bn2nl4eq; 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 b8si7536848oob.73.2020.04.05.18.14.07; Sun, 05 Apr 2020 18:14:19 -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=Bn2nl4eq; 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 S1726528AbgDFBNo (ORCPT + 99 others); Sun, 5 Apr 2020 21:13:44 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:41532 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbgDFBNo (ORCPT ); Sun, 5 Apr 2020 21:13:44 -0400 Received: by mail-il1-f193.google.com with SMTP id t6so13094966ilj.8 for ; Sun, 05 Apr 2020 18:13:42 -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=Tr1Ryw65VhOvk3m5+ACJJuQ36awxae0foxLzvaXT+Rc=; b=Bn2nl4eq8BB2ZKi4J8DvgtFkJ49z9XvCgAAaHTOPnLupvspsxRYNrzbRxecgPvkh6J Ze74qBrszLcI/hFUVBNXqcyDiYc9nm4p/2y9W3/Dyz0JQdx6TLspNKb5httdYS97ocN5 jbvNVkjaf2tvb6kcYC8vGwIQ89KWlYoFaiIneRC06yr4VIyGXSYKJ7rGeOjQ1RgMYqqo 1weqXYO3aJs9K5aGXkTCHDPFyORPSs5xOHfD7YW3Dmy4LR8UqcMLth7YagAvyCn4oqYG LisuKL8NQcpH/vKi+KL1bEAL8DEmxe+iqCJegFycJOIBMFA9RAW9720LllOHnR8dukGm 3RHA== 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=Tr1Ryw65VhOvk3m5+ACJJuQ36awxae0foxLzvaXT+Rc=; b=bBdGkZQPywPriM7+vFrmOvtqKLuP/dV8gs013GgBXWUqWiWkjYDN+prT4GyzPxyQd1 ftZ9tyUE1o8KflYocy94b//dQ3VYtAH3oH4yknwnldnRHNp5uPDSdlLX1ZNjpzMKHXcK 34LxtukN1e8sNMWpoW/AbqnoI0hpYs5Xq3dBnsbYLzMbT4n3brykA5V612SYxK4cNgoR PbSc4AuZd6KQ1n1DiGds0B4XSX4y/YsRYxt8UsiPIgN4eqEYoqUCc/MC3pFNYuDT7+Rj NSlYb50io1IHkf5jmFbj6oyGHUmvE/QZ8a1eD8s1CcWfic+jjkEvrosvB6TGd/7BTihc kcTw== X-Gm-Message-State: AGi0PubmHeNvfV+4YB/pogs/Ajf2YZmXzQgD4u6lhZdt/wgcQJOn2Dma mD61kGejevbCBV0aweFQwglVaE782bygp8FMu/w= X-Received: by 2002:a92:ce51:: with SMTP id a17mr19598576ilr.263.1586135621955; Sun, 05 Apr 2020 18:13:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Qiujun Huang Date: Mon, 6 Apr 2020 09:13:28 +0800 Message-ID: Subject: Re: [PATCH v3] powerpc/powernv: add NULL check after kzalloc in opal_add_one_export To: Markus Elfring Cc: linuxppc-dev@lists.ozlabs.org, LKML , Benjamin Herrenschmidt , Michael Ellerman , Paul Mackerras , Thomas Gleixner 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 3:06 AM Markus Elfring wrote= : > > > 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/null/= kmerr.cocci=E2=80=9D > be nicer? Yeah, but I think It was enough. > > > > --- > > Will a patch change log be helpful here? I realized I should write some change log, and the change log was meaningle= ss. So I left it blank. > > Regards, > Markus