From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-43171.protonmail.ch (mail-43171.protonmail.ch [185.70.43.171]) (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 496373DEFFC for ; Mon, 31 Aug 2026 15:47:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788191235; cv=none; b=QRVHasxFTGhlVSaPi7zf6c0Yor4Pv6VZ1hHh52Zd/bI/+S9Fw01Ehtr+lymN89t7KoDDphpvcfQuHP1JRkpFcDk4BZZiosaMe+UJEs6M7nbzQtkijsxdpCLaLqT9cxb2bODwzgYfEOd+3SKPg5A/sWvBiY2yoVJNKSkXxQMWkRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788191235; c=relaxed/simple; bh=OhxGGxmaAKtp7SeqWhlc4/jjqs40hTw17vjrraFI7Q8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Hybk971pfi6KUsIE3s4IfLG6Nd2SkbadEY9yk0q/2s5XXl04v4i+ACnIQcUroMjYyMUfvENf48rSYid8sWDCoySpagUIfNSx0uKt9uKR7fUI307jZM317UYLu+hguFKu57/vZF7Zb0hBrKzirpWuB8tgblyRSRocHSzq0NHQZWc= 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.171 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: devicetree@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