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 0DD66C3A59E for ; Thu, 5 Sep 2019 00:02:51 +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 D296921881 for ; Thu, 5 Sep 2019 00:02:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qBfLf+7Q"; 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 D296921881 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-amlogic-bounces+linux-amlogic=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=nZX6c9QP1IzgHMncpqY/sYFmgcl84iWb4twO86trhvM=; b=qBfLf+7QUqtZG6 1EEs6ZHF4Yj3vXIoeAQ2zLhaa8e6UMN76O8o9y27PCzrCPYBBCDhY+M68Jj4bHCSoL13eM8+FON9s LC/0NHfBJGqKhT9glXqo/ix2AZEGjM7rkF32pMGmoceTmGKI1UTSRj2AN//FWm/T9DZ2+h9E3KzcZ FgzErzUXU+9RNeCbst31bkyXCsuaLlc5o+cuoOvSUDFZ1BIggD+CsVnqDAfWgAdpRV90tv0tGvwbO BiJBNTVJNTXp7oCyTav0oCD3z4wMUq7kAWEfTkOounX5FTdnOQs3r9vBJd0dggi/VFvwrL23RKMzD gGww549UoBmBIJYGYMPA==; 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 1i5fEa-0005ef-C9; Thu, 05 Sep 2019 00:02:44 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i5fEP-0005RE-H0 for linux-amlogic@lists.infradead.org; Thu, 05 Sep 2019 00:02:35 +0000 Received: by mail-pf1-x443.google.com with SMTP id b13so465801pfo.8 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=X6JJArWuEJ+5ue2e7nfA+o8iK7sdGaSGUL6SXoJRZlg1remMlKUPqZorJ9WLwbmilG SAhlGbG8/r1eI62VaAG4e5RKQkqtwHXuxbHL5Su6GJaCkddq4mLWPPrQesKBmKdTNYYe MR2+7f2bNTjIL6FTi52ah83NJp9bsQ4qZt86w0cv45whHwn4FIptvG5lt2QlhOndJ6ma fimop05vU5/ncz1JyWQyqQwIIFcdRemGJaZu36cmiJ2gMKLPmPEXM3mSO062gHxgyee+ Op6TVgsPGrboX/vCXhd0uzAUPpqWJ7GZGmdMp1PudDJAyqCYUWuMd6a3qOcn1KsijWYD 5nMQ== X-Gm-Message-State: APjAAAV+ChAR8Bl49iMkVlB4fMjstaAIbZ6IZ2xOz5YyPFvtv+VrFH11 E8TfFn3O8PRdEPUYt4TKLWSgfNrP/8SQgg== 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_745109_E89EC6CE X-CRM114-Status: UNSURE ( 5.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=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-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic