Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3319730imw; Mon, 11 Jul 2022 06:30:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vuFXHMD3JhjoxkR6EBIz6/E8cAjwkXh9JOq7N9O8vkoeg/HocUrnucqIi37t1+dzV+bG3E X-Received: by 2002:a17:907:a06f:b0:72b:564c:465b with SMTP id ia15-20020a170907a06f00b0072b564c465bmr4905475ejc.344.1657546241639; Mon, 11 Jul 2022 06:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657546241; cv=none; d=google.com; s=arc-20160816; b=Jd6B6aisg7DASJPxED/TR6wb9FNMkAedUzZNDJJZKXbwp1OXGjrFDI3q+0K1T6uJfM tItowrlu9Ncu5VlsrRs/y0ZH8MW7lAEZeVIGZhh8LjhwEwD1AFvUw2Qj+inAOjswAC4G VB3wStYWLrizxRaUIacaHLiGVcHOar2ScV6FLi0aF1LLVlrmUH6glJPgp02isGPjl0b6 yHZtwXaRs6EJWoa+q49hi9vcRHQV1M7cG5QqRlp3iuEIZijYHoTP9kXI8WD4jwQ6Lg/9 5o7UD9krbBHtO1gLReUkv9fOL8XK/dD+L3jJV+KPCXa1c4Tknc7ZU6KNL73KO+XMXDKF 0MdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9JKRBi7riS8dgDanXOkqRAyM5H4qVguce4FeaGzoT7s=; b=RZB4ecOP4hOQC8iBz2GdlBP2aVQCNFCRX40c+YYMEh9BhmUkXaNxdXOBsdcRJkE4R+ qA/RanUYEYNwA7UMvfrRLdBMyW5HuTQ84cN1gQj/yVWh3hrkqVwn42Z4l41l8DCBUjMB 9+JJhESTkwCOMHSO1Awmdf4qiwiAyTGE+qcSyFw0I+AyEE2wZn/UD9MqUrMJLOaizfnu qFwZ53AZNd0K78pTV/TCwNRcM5ZGXJKbU16Yu97PRy8X65N8ZptIbvSIkCgpcPvUTsiA /dOOwihOhiZxQNj/Wheh0hjxAQpmW22tNZK3l2yEkaLdRWlGF8+4UI5sHqgBXOfXQ7Po GByw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=okcsyTE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kg6-20020a17090776e600b006ff094a9c10si8150325ejc.322.2022.07.11.06.30.16; Mon, 11 Jul 2022 06:30:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=okcsyTE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbiGKNE3 (ORCPT + 99 others); Mon, 11 Jul 2022 09:04:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiGKNE2 (ORCPT ); Mon, 11 Jul 2022 09:04:28 -0400 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ADFC2E689 for ; Mon, 11 Jul 2022 06:04:27 -0700 (PDT) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-31cf1adbf92so48088917b3.4 for ; Mon, 11 Jul 2022 06:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9JKRBi7riS8dgDanXOkqRAyM5H4qVguce4FeaGzoT7s=; b=okcsyTE0zJ0p2APWdLeNBmYNX8aFctszqIOEnjmyHinbyXjv4TrkM3plisAYlh6vAh FEuT5tA3ikYdJQXUYj3t2QSj4xJU7UPICd6IRv+HfPChYvOlfLGjhHbFTawXcJRhVDQ6 aH3VVl4EfFAq1yQb31uooHzZTnwLY3OncgwszldSzE0Rh9P0EQPsZ4LBBV0nS+sCQMbd XTDSGUJoNHsKXm6JVZv+uQzQfmYElbijb67isYpyrPV/TlTujXNMUwExfXeyKIeyz50Y 7rpr9p8FKpouuoDhBAX7fsk/lzsM/5TA3AuPW8JTK9IaklWJrcUisOo86/iv4W7iJ/Sf soDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9JKRBi7riS8dgDanXOkqRAyM5H4qVguce4FeaGzoT7s=; b=X84vPmkfBt0HW7SqRgp5smZo5u83naGsa/CuTIiVx+thlUBS74sB2wrPTKNee/z/R4 UMQdF3nvLkPTTUTLg04xcJxpzNMGQTL4ffyFfxozv0ke3fqqY5vPntHj+vgdtXwBxZ7w k7xIBCuwE0CvNRv23Jea2rpRDVICuem1/ieofevwX/wqMsaDzswvQkYp7+TdW6ntuElm h5/ijuaZdL/+t2IJ5NbARnNaXlhaKIXDcEyXIF62r+rTw93cItAY38o5lRZWZiwVnQ5+ 3mDIjtj3MJS7MAi0Kfybt0FV+adDdLmtYelFLPYvNlNBOJ2FHvXijTttZSaWx1aLzaSd IQeA== X-Gm-Message-State: AJIora8YEBLR+Vuccr17qQ9FP756ve6rue7enLyWwzKtKwNKO1Xv4CcT mx/gXm2O6yng+6RpJz/bWOLeNEYYERIBLUEDjNDf4w== X-Received: by 2002:a81:a8d:0:b0:31c:cb2f:c805 with SMTP id 135-20020a810a8d000000b0031ccb2fc805mr20481784ywk.118.1657544666696; Mon, 11 Jul 2022 06:04:26 -0700 (PDT) MIME-Version: 1.0 References: <20220710154822.2610801-1-williamsukatube@163.com> In-Reply-To: <20220710154822.2610801-1-williamsukatube@163.com> From: Linus Walleij Date: Mon, 11 Jul 2022 15:04:15 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: Add check for kcalloc To: williamsukatube@163.com Cc: dvorkin@tibbo.com, wellslutw@gmail.com, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, William Dean , Hacash Robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 10, 2022 at 5:48 PM wrote: > From: William Dean > > As the potential failure of the kcalloc(), > it should be better to check it in order to > avoid the dereference of the NULL pointer. > > Fixes: aa74c44be19c8 ("pinctrl: Add driver for Sunplus SP7021") > Reported-by: Hacash Robot > Signed-off-by: William Dean Patch applied, tweaked the subject a bit, Yours, Linus Walleij