From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4157C3A59E for ; Thu, 5 Sep 2019 00:02:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8648421881 for ; Thu, 5 Sep 2019 00:02:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="P4OlhSbI"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="o+xsl4lm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8648421881 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TAqnJl3ptaE9MAnbaKe29yel+wlHcK8NjHMov/yX1/k=; b=P4OlhSbI41625m Uf0IzVR0slL7QTvH5b/KJm2CRzKIyRBtWR9QQ29KkFg5csEpqGIIPzCThbwWDnFGfV4MtEEde04Td tkH8/YnlgwCyDOoPOGrkblDZGUe8mxSRm2ED35ECuM1q1n+Iszj7FFz6rn/epDUSVxYdas7U8Nmd/ 87V/Q0aH6ZJX3/PB2nfPA21MC9rCAVkzXhFUdwzvaftoecyHHNG21GYzlWI/dRpKf+cMaBfbWP+5d Q+Ql7+YYlPLMicDa8jy9T9jPKI1t0Id0RZpNnRULMEgQXWJV24Yz7Aa487NUuYh/2ufwS8u8WqUAx 5i/RnBQ9lnnR/wqm2lhQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i5fEf-0005hZ-7J; Thu, 05 Sep 2019 00:02:49 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i5fEP-0005RG-Lu for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2019 00:02:35 +0000 Received: by mail-pf1-x441.google.com with SMTP id r12so487695pfh.1 for ; Wed, 04 Sep 2019 17:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=DMDiIQY2gVxor/9tfnSEdI8BwtB46XK7pBIB2yMTLBc=; b=o+xsl4lmBHGpnDImWPM+EZHQW8VVGoHi4Ms8RXruJR+FJ/vQ2e61uWD0J7ERaS4FKZ +LAbashurqA9qoUt55zN6vY+z7XjB8j669RaxOBPkjDMFkhUw5Poq2OE6Eoqg3rZlcOh 67ctW4j73di+6QPuk1BgvRwvdlGOu6oA8PbE25+4TAGv2lc9R2PHjI8jYFUiPz7MEAUV OKa+0uv2hM12FZCfoKnuFYzUIetiBzEE+AzlYURObnb1YYQdc9k9Yy8Detsp39urQD/p DPPx4eT88OOb8OUMhLUvN1ABBLq3fIbijVX0O+hVzuABVav6duYiI/e8gcjoJmLsJWMr /pBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=DMDiIQY2gVxor/9tfnSEdI8BwtB46XK7pBIB2yMTLBc=; b=cxMKNH+uaBWHuNVLU22HvKg7CsdliamcBqpFT/6UJByPJado2H7CAF8rgu5/9PAfHY UDybiBdjSsdxL+30suemG7PYi8akFdmDwPAEUEmBxGV8/HpIXpeEaENixWfPZ27+9XRJ IM34UrWLSF4YhRhmBb0UBLWzs2Ga/Ebpmfc9qNUtli9IVxdqtHG9khmqRyHwom3KN4o5 d8ofd8jVq5MWw1/0ADGzEEi2P88WhjbOoqQvmcsNUkNbTOmXbRMDzRb8Ev+rKSrzAGlK mopI/ynOV7nmFC7Hs5cg0248JfoxgVSaLTxTox5ZiicDk1zLAcJeQkXEcqClV8ck34fB ul7A== X-Gm-Message-State: APjAAAXpH8pivN78wMxEDm0M14dpYu7X4CxGgiChWj3c5ic9LSfPYw8N 8z1fy6EqW9MOeEmTdiXDFvIGng== X-Google-Smtp-Source: APXvYqzc0wRcdryTLKgsgoGOwLmF9g/litQYYjhoz0VIQFDDUflUHMSdrzjEFyAFp2XzF5NH1fDC5A== X-Received: by 2002:a63:553:: with SMTP id 80mr665691pgf.280.1567641752363; Wed, 04 Sep 2019 17:02:32 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id g24sm192291pfo.178.2019.09.04.17.02.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 17:02:31 -0700 (PDT) From: Kevin Hilman To: Remi Pommarel , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Subject: Re: [PATCH] iio: adc: meson_saradc: Fix memory allocation order In-Reply-To: <20190901105410.23567-1-repk@triplefau.lt> References: <20190901105410.23567-1-repk@triplefau.lt> Date: Wed, 04 Sep 2019 17:02:30 -0700 Message-ID: <7h8sr3txt5.fsf@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190904_170233_739639_20267484 X-CRM114-Status: UNSURE ( 7.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Martin Blumenstingl , Elie Roudninski , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Remi Pommarel , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remi Pommarel writes: > meson_saradc's irq handler uses priv->regmap so make sure that it is > allocated before the irq get enabled. > > This also fixes crash when CONFIG_DEBUG_SHIRQ is enabled, as device > managed resources are freed in the inverted order they had been > allocated, priv->regmap was freed before the spurious fake irq that > CONFIG_DEBUG_SHIRQ adds called the handler. > > Reported-by: Elie Roudninski > Signed-off-by: Remi Pommarel Reviewed-by: Kevin Hilman _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel