Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp538704rwe; Thu, 25 Aug 2022 05:09:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR69f1zJntKrMf9FHdsihNv2Ic4Q8Z8oYssmcGVYBVp6mCBdxA8mHiMPj6HWdL11xZtKMuQJ X-Received: by 2002:a17:907:2cc1:b0:73d:c2d9:3232 with SMTP id hg1-20020a1709072cc100b0073dc2d93232mr2323412ejc.763.1661429365871; Thu, 25 Aug 2022 05:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661429365; cv=none; d=google.com; s=arc-20160816; b=KCN5WgpXdUYq6eh/k8yaxAAEq4HhoRH/WEJSiv6H9IYD05P6T4TFhTRKoTqd+e+sFt mT2TDOnNym/yzg170+3ozlNU6YzTPH9OpDGNdMkCNUoBiiPxYcoCOi134tMz0BvcRtMG ruIm1OniG0eENb4l3yuvWSvvxD2q/IqWcFKouuZF+iYspJUTgsq4QA/N9unnWStrfCkk J+Q3JnyePnNIKt4w+rRQUN+6vd5i696KuZAY5lXY68/Et1NCCvbcZvSb/MWfka02zm77 x007bd0auEF6au0AVNnexFQSa3t1+cCqufhJvNR/k1mOBjAog72nMXBbUYTVOb+5AS1I 2b7g== 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=Oc9XG7GPSCxnXnM95Iom9pMyD1+5Et6qnFByyd79xxQ=; b=Y+V65lxrQp1o+ZxDsWLYMfEfVw58ZC49GFK20XkaOdq58VccrVVgfxB0AgBJ4B5cwd p/5t+30SqCsOxMHfmZwSu5fxG8/yv471GXFV+cdLlapRzpbs7vj3LyZQGykCpiYrQL+N 3V/YSmY4Wzpk5vMm5X9hGdaixg7h/Lf8uejJNTpa4yaS0odPQRbo0yj2TlrR1yilRhj2 AZ6JtC1nAYflCiZDUco3wzLksD4MxsqItYn1bOQRuOg6g921P8yrp8MlmB3Ap2R5imNS /IEaTpKtQ7eGWqDRwq32hzeo2dP0eD7hhXsaEc0/6gLfFX2oE+JXU6ZIW/xMvVN1dzwX XXyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="clML/k7u"; 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 dp20-20020a170906c15400b0072b4b8a0ce7si1603801ejc.946.2022.08.25.05.08.59; Thu, 25 Aug 2022 05:09:25 -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="clML/k7u"; 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 S240817AbiHYMGQ (ORCPT + 99 others); Thu, 25 Aug 2022 08:06:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236230AbiHYMGO (ORCPT ); Thu, 25 Aug 2022 08:06:14 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9394FA9C3E for ; Thu, 25 Aug 2022 05:06:13 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id z8so5183888edb.0 for ; Thu, 25 Aug 2022 05:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=Oc9XG7GPSCxnXnM95Iom9pMyD1+5Et6qnFByyd79xxQ=; b=clML/k7uO70cjZosomYnlrfu7Hk/7+IrQFqn3myTXjoUJFZSxafIE+zAKKGx7GCKv7 nmZmkXh+KDxftT+cWcuBhYaXp5gM0qOuEXBPLUbEQ0bEApYPZ57YzVI3ou/hkquYdf02 SOkj/AiI5Hr+P6P8KcRXNwyeWnwiBHXoX3/cEx8rtqCDzS0HBOcbuBuxdmCni0IwGcSM TRcF3d7kP/EAIR//kxokOuXtmNZrZ5LF0zz6ZUFUciVs7IEsJ23QQJdJow9JfZ4l5bhO 3WudeBVKFA9derID2Irc+1YY0EfObX6XcO6t48WbS+V3VXVNhCrOQYmXAMUPQXKEuveF pWZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=Oc9XG7GPSCxnXnM95Iom9pMyD1+5Et6qnFByyd79xxQ=; b=kxlEPjZWJiw6qsn+JqqEoCWH2IDKDsA3NcZPaQWex008U6Ac2QsnS74fVrBAe0WcFH QnuddJd7Z2xynplQU/IVIDo8POpSCUsb85VnV9+5p/TefuEWXlyVAu0/+1QmyWHFCxTs WKs0uUeFv5+RgzkXqx+G7G9xtrktXKrNCS+MF4S+i//pD+fLle2QU6HTCHDVmnuyDc5a ojH0i16DK6IXNcMtAZCnr+t/K47cY6tKkgGAQCgI4L9OmxGfIP/HPBr+PwRdPNAm//D4 CZHlQ9FcwRXvpke4EchmVXSVQQb11AErJL5k2KOtbPeShd/9vG3ZA/TsUgQGxiTVTUBH TAvA== X-Gm-Message-State: ACgBeo3Ye2cmkceEbzNWT4WEjY9v+4Nzdguf+eDPkFJxJhVHx0QXsELB Bb4VR07fGNfxeOQrCeI8Bp+WyNWTTJtxq2nXUEtAI45zL/uQ/w== X-Received: by 2002:a05:6402:5384:b0:431:6d84:b451 with SMTP id ew4-20020a056402538400b004316d84b451mr2939099edb.46.1661429172173; Thu, 25 Aug 2022 05:06:12 -0700 (PDT) MIME-Version: 1.0 References: <20220816090903.19558-1-Will.Shiu@mediatek.com> In-Reply-To: <20220816090903.19558-1-Will.Shiu@mediatek.com> From: Linus Walleij Date: Thu, 25 Aug 2022 14:06:01 +0200 Message-ID: Subject: Re: [PATCH 1/1] Pinctrl: Add in zero check To: Will Shiu Cc: stanley.chu@mediatek.com, matthias.bgg@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com 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,URIBL_BLOCKED autolearn=unavailable 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 Tue, Aug 16, 2022 at 11:09 AM Will Shiu wrote: > add in check of buffer offset to avoid the exception when input 0 size. > > Signed-off-by: Will Shiu Looks good to me, patch applied! Yours, Linus Walleij