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 DF6653D34AB; Wed, 8 Apr 2026 18:25:49 +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=1775672749; cv=none; b=NVhq8DlRZTEp6SPssxvlivJYrtWsEoPZyyYGSmI8SG6ejJ/q5dztThWdkE9JLWfe6YtBHzwyPFa0Hqtk+ag9bytdHTA9F5MgrpnhjcriTKRhYx7GOAtgchJ8ULnZ2K0NQysagMngX8Onx1qSFpbOtaj2/Rvj8pttutDtBN/plRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775672749; c=relaxed/simple; bh=/2J3tZCpbHz6oguWaYhfuS2O3VUCrDodPD0cxtHJAOc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BOBgrHTkkkisJHDhmnu/nzsf9IAkv/y5eyYQKai2Ont60HVXvBjxHof8ySyWgBmPhjNZ09vonJJoE+1VqcllQMPMaqdWo0E5AjAyIATfas2oecRgFeOUiBDe3S10/4Gl9hMKXOLO0VayGTgC7OfzdCnI+JvzIaF+CHi1YEvYQHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l/o+QHOb; 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="l/o+QHOb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73EB4C19421; Wed, 8 Apr 2026 18:25:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775672749; bh=/2J3tZCpbHz6oguWaYhfuS2O3VUCrDodPD0cxtHJAOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l/o+QHObypbBb9Ous2KmQFWDoRc4tncs7JO1YeLx39G4h5RAnYvpsOZWyhiJ33iqS 3YP6iALcd5NAgEIDI5MtFM+mRvp0ludowNBDqlNgyY1iCKPw2U/oPRZRpD3Nahn8Ts 9EnE0Pc/1YWI0wYJr65jAEKFBRrpO84IlDilazMU= 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.6 100/160] iio: gyro: mpu3050: Fix incorrect free_irq() variable Date: Wed, 8 Apr 2026 20:03:07 +0200 Message-ID: <20260408175916.919518857@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408175913.177092714@linuxfoundation.org> References: <20260408175913.177092714@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.6-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 @@ -1279,7 +1279,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); }