From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 332033B19A3; Wed, 8 Apr 2026 18:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775673331; cv=none; b=r+aA/5qQ4YXR7W3c+OfwSR38qTpRhL88eOqDs7vsEg+Wq63w8lZFVlTihgxwEGQQiviANHNabeLFNlAj15LhWruIR5E9ila/p7kD1VLljSeVGArIBxaj3HQNtkH4ydzQyE2t7N5sGxuEIA4hVWGXE6Qr2jyoeqsqvaPCgrWsURQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775673331; c=relaxed/simple; bh=nt+dONUeHL/J9lKjPcbxZEyv0wQRB3kgoSPls6wJB3o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SVXBhVaz2ipS87DKbmaM9jNOrJ1ebXVZFzKr1GgTSZQP4Mf2fq/Bc3xLQQ7IpuYHXK4nUSeXyR+U7YHP+58eo5wGyKu5n2nmMQjomX1tDQAaGjlVqhQce8tAOyIAEZ0vxaDbuy6Jv9YgSiAXbttTRf+ncJ7AvEe5d3fVTvgbEw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dc4I0nHs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dc4I0nHs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F738C19421; Wed, 8 Apr 2026 18:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775673330; bh=nt+dONUeHL/J9lKjPcbxZEyv0wQRB3kgoSPls6wJB3o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dc4I0nHsAsW5EnH9i81yEY15bS88EEa8NplbepszDGecEaM21saqbXiPabRpJ9TSG 2N/uJgdH6uE3aHZZExPCYd6ah2X2hICkDYttx91YxKsxxeuyoMkM4ObT87SwaRy6aL Jc7xoB9tirlL5XvL0l4YsKyB9ICH5ofLviHCgTTY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Linus Walleij , Ethan Tidmore , Andy Shevchenko , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 6.18 191/277] iio: gyro: mpu3050: Fix incorrect free_irq() variable Date: Wed, 8 Apr 2026 20:02:56 +0200 Message-ID: <20260408175940.996040781@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408175933.836769063@linuxfoundation.org> References: <20260408175933.836769063@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ethan Tidmore commit edb11a1aef4011a4b7b22cc3c3396c6fe371f4a6 upstream. The handler for the IRQ part of this driver is mpu3050->trig but, in the teardown free_irq() is called with handler mpu3050. Use correct IRQ handler when calling free_irq(). Fixes: 3904b28efb2c7 ("iio: gyro: Add driver for the MPU-3050 gyroscope") Reviewed-by: Linus Walleij Signed-off-by: Ethan Tidmore Reviewed-by: Andy Shevchenko Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/gyro/mpu3050-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/gyro/mpu3050-core.c +++ b/drivers/iio/gyro/mpu3050-core.c @@ -1269,7 +1269,7 @@ void mpu3050_common_remove(struct device pm_runtime_disable(dev); iio_triggered_buffer_cleanup(indio_dev); if (mpu3050->irq) - free_irq(mpu3050->irq, mpu3050); + free_irq(mpu3050->irq, mpu3050->trig); iio_device_unregister(indio_dev); mpu3050_power_down(mpu3050); }