Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1234822rdb; Mon, 2 Oct 2023 03:36:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeqhUDqNBDgILQsJlAmDUZOqLo8fXFy8Z89D3Vjp5YW1DEy9aoz0jAJxLaVze0IRLyoLKb X-Received: by 2002:a17:902:7401:b0:1c6:1679:e035 with SMTP id g1-20020a170902740100b001c61679e035mr7852805pll.21.1696243015310; Mon, 02 Oct 2023 03:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696243015; cv=none; d=google.com; s=arc-20160816; b=HrSpd3y4JLa+9gS7nsCyBKZ15z8Qi2kPhfCbrdG9c68GCeiElnxRamCqhHUhkiY7cn pylfIv0hpT6SVyFYuBMwbi9OfsR18t27hq2wySo9NaKGTcnTsntxtxPLtVNVnopLctmu YZDKcHE4kZzaKnmVmF3mkyi3gFQA0jZ2eUOUawZlpnn3YDcWaFxbfD4vnGXSwL7OKFCq vp8BpFuZbcFc93BZAGBdZzOAkIQUMBZkR1HOFPVoNL8Za3Owh2Qkz90WUg6s1X3xhrtt mbeMZlJUWALY9N0y9jz57xPTkWeZTWcbLQF5O5vVe7cT4MLilSduwlHmoZa5cz6NWw5O Ouzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lAKzSdJ0JsZA3KIMeGO1s7/CEtUUUhbELYzhrqen194=; fh=IizmloT14n8XWuBq6t7jTpERoIFUByijxo99TDZ1PlU=; b=Nb0NS73d40ySrMDFlmBwltsee1Mmu6qxNHNCftpZihR0fwAT3RLar61z7vkumT+hoF Ac6nCwprf29uX186Uj/AQRw/xWDL9yLaQTzxx3w2WR+IPGSHH+GZscIDKSzI/URyPEWk KTEIM2G7Goh+AXXdmlhdNNy2CV7hhBcAUiULzGkuSxry1gIYUQGE6ZKGeQSu6WFt3UIL xX0p67iqOg/7c3l/umGE0atqy0h8mnPwOf9TBkFLdOc0QdDvdr7mPV2WKyMZk3+Hd6Z4 T+fj6l2T0T4dL6uf/2xAoZHgPyqOEzQzV3jO9QRNu/l2Iv/pp8RPjSZSFYfOPAy9gKff CQpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cc/HHdJC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k6-20020a170902c40600b001bc1b018950si13888490plk.442.2023.10.02.03.36.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 03:36:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cc/HHdJC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9A5F88086522; Mon, 2 Oct 2023 01:07:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235805AbjJBIHX (ORCPT + 99 others); Mon, 2 Oct 2023 04:07:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjJBIHW (ORCPT ); Mon, 2 Oct 2023 04:07:22 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A11E8BC for ; Mon, 2 Oct 2023 01:07:19 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4054496bde3so144515345e9.1 for ; Mon, 02 Oct 2023 01:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696234038; x=1696838838; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lAKzSdJ0JsZA3KIMeGO1s7/CEtUUUhbELYzhrqen194=; b=cc/HHdJCVO9GWYunefCL5QbZiX1FbhSPwtiY2aIOBbwmZwZWWIccNoIjcrmSNZDCP3 OC/eWW/whqEcY8+syHqNWuJLE88qrJUEXTrRge9bk1I3mzEtMy1uFprWLEealRT6cEjH ZVeM+9P705MekX0Q6frLBobl4oMEK8jGhskjXtyMwwUiwZ8oveAMRvab8jwGaGEgj/zy z015OrKAQ6rBaRr3Q9LRlIBQwKNmQ1ks5FkA+6y81J5pTB4rd7QPYgw7xVXAAa1NQoBT Nnyk3cQELik5YgwEvGiRZJkhGAN7HLiUt0+MARwgmbnummjbrpEicRbLgnSA58uMASZ7 VkbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696234038; x=1696838838; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lAKzSdJ0JsZA3KIMeGO1s7/CEtUUUhbELYzhrqen194=; b=I8C203RRZXy9Vigdx2pMfpBqJp4Dd85R9z1liMtDjvtyZu84CHO0egvs4xYEXSFZd5 8J8ClMtR7FqfHYjbkDOU3w5k4MF5m5nnPcAQiPOmUa/qwG4NKRvbX9/oyeczb+vIINnw VdpLnRxKAy31JX0THhfb516a7VaCf7vUHqVsQS/0zaSu99drM5b3QIE+/glNfbQeHnsS i4QP663nElFCkze0etZuePQnerUaLVmFI1MpC+/XTprXuLLSw41POX3AGPzimCYWleCu S23lF8/mYNCkr1CZt4HQ0vTYtuQM4gVriQneKLEoeveXR77r30jLcfGKlCjB2vnpSE/t Bd7Q== X-Gm-Message-State: AOJu0YwnopaVJjhnXLlCpnRauHBE4hMQpVXoY3/qMRTkIEuv1b5qBy36 bNQbbw0Ms0oLmfTKrGVnNliUOA== X-Received: by 2002:a05:600c:2242:b0:3fb:a0fc:1ba1 with SMTP id a2-20020a05600c224200b003fba0fc1ba1mr9209291wmm.35.1696234038095; Mon, 02 Oct 2023 01:07:18 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id k3-20020a05600c0b4300b003fe1fe56202sm6685642wmr.33.2023.10.02.01.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 01:07:17 -0700 (PDT) Date: Mon, 2 Oct 2023 11:07:15 +0300 From: Dan Carpenter To: David Lechner Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, David Lechner , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Nuno =?iso-8859-1?Q?S=E1?= , Axel Haslam , Philip Molloy , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 02/27] staging: iio: resolver: ad2s1210: fix use before initialization Message-ID: <1b366292-6e05-421e-914e-6d3457886238@kadam.mountain> References: <20230929-ad2s1210-mainline-v3-0-fa4364281745@baylibre.com> <20230929-ad2s1210-mainline-v3-2-fa4364281745@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230929-ad2s1210-mainline-v3-2-fa4364281745@baylibre.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 02 Oct 2023 01:07:34 -0700 (PDT) On Fri, Sep 29, 2023 at 12:23:07PM -0500, David Lechner wrote: > From: David Lechner > > From: David Lechner > > This fixes a use before initialization in ad2s1210_probe(). The > ad2s1210_setup_gpios() function uses st->sdev but it was being called > before this field was initialized. > > Signed-off-by: David Lechner > --- > Fixes: b19e9ad5e2cb ("staging:iio:resolver:ad2s1210 general driver cleanup.") This would crash the driver right away, on probe. It's amazing no one filed a bug report even though the bug is 12 years old. regards, dan carpenter