From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-43172.protonmail.ch (mail-43172.protonmail.ch [185.70.43.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E61AF472F7D for ; Mon, 31 Aug 2026 15:47:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788191233; cv=none; b=cJeqUiWfHpdXfNZ+oXWrolB8rxqmj/JbrwVTbUfcdbq7orAd18/86C63xF9S2omhxrLbNFiKowR1+PxDgBdmehE/paSLHImPwoLqLsMmq+7gaE7jd5ONvglras7U9kDao6d2wkpA+lujFbzu3vpkRZuTzfhCi0OibkyLxlAaQ2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788191233; c=relaxed/simple; bh=OhxGGxmaAKtp7SeqWhlc4/jjqs40hTw17vjrraFI7Q8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=BxunrcRNN3jDzfVuX8MZtHGtCIJfZL38B4aCK7+aZ7jRPnFOVboxb3EF30MbdFnAXb1JTrXddt+vEwW+ACTomxQK4K58sTu71dEGjkqMW6K8IjgZeVgMS15SxSdrXsSkEKv1ZWoC3XxAaUL5yrTfiuoe3kW1TgXV042siXNgC84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=QrGr5jks; arc=none smtp.client-ip=185.70.43.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="QrGr5jks" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail; t=1788191228; x=1788450428; bh=OhxGGxmaAKtp7SeqWhlc4/jjqs40hTw17vjrraFI7Q8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=QrGr5jks0Xkp7MoD5gj6dSwYO11odHqx3R1F2iGFSdv0Tvv3MFKhqxot7YovUR+8k 0DQIKJFAgHc9Pj3DdkEwFJhrX3EgZ7+HllWcMiDNNPly2UCRHAqgL6gajdT8ZkUUl2 VRXqUQUrYgquxvCSA1reGUnjreempDYXQjN/QbtEYSnh5Mdo+eFRU+XP6bo6YkCnuP N2wWnAorEjriu8y7Gn0yn/TsyITesqMkyqO0nvhRrIOgIFfGtkwvJ3Hbmg4kXwh5jC Lpxt9cR5+MIBlmgp8jn9r3O7sjYjxONn804+5mVG/9jFDcqpK3dbH50r9uslzc2icd sP0UCAvBpTPFg== X-Pm-Submission-Id: 4hYYJp1nyLz2ScNm From: Esben Haabendal To: "Andy Shevchenko" Cc: "Jonathan Cameron" , "Lars-Peter Clausen" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Martin Kepplinger" , "Sean Nyekjaer" , "David Lechner" , Nuno =?utf-8?Q?S=C3=A1?= , "Andy Shevchenko" , "Martin Kepplinger" , "Christoph Muellner" , , , , Subject: Re: [PATCH v7 7/8] iio: accel: mma8452: Fix use-after-free bug in error error path In-Reply-To: (Andy Shevchenko's message of "Mon, 31 Aug 2026 17:00:13 +0300") References: <20260831-mma8452-open-drain-v7-0-22946812c928@geanix.com> <20260831-mma8452-open-drain-v7-7-22946812c928@geanix.com> Date: Mon, 31 Aug 2026 17:47:05 +0200 Message-ID: <87ecfeuwau.fsf@geanix.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Andy Shevchenko" writes: > On Mon, Aug 31, 2026 at 02:17:10PM +0200, Esben Haabendal wrote: >> If mma8452_probe() fails in iio_device_register() or later, we could end up >> with runtime suspend callback being called with a now freed device pointer. > >> Fixes: 96c0cb2bbfe0 ("iio: mma8452: add support for runtime power management") > > Can this be popped up in the series? I think previous couple of patches are not > fixes... Yes, popping it in front of all the other code patches in the series does not seem to cause problems. I have scheduled that for v8. /Esben