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 3E3A13D8905; Wed, 8 Apr 2026 18:45:58 +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=1775673958; cv=none; b=aciSp2EcSFRq+M3/RnyFrhMov8tGFyYNQpDMj8WPmexDtDpsffZQZRqcMSGYlBiqesRYNlzJECHEqI59ezQoS2xQsozaclWFc038cymrCZrNtRv+f7PVZlycL37SRHTEJh+nQ2AXqYaJCnR1EMxbiTRdihIvTCw2by66BabD8Ds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775673958; c=relaxed/simple; bh=TV6j/Xr579/nfKTKVV28Bi2mUB5YW7mxV2uF8KX0eGQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pQJVCscMdhFf06eOXD8eQQlyenytNI2L4StTQeCrr0TVWPssbKo+TeyLM+wu6istlViwuP6YWPwlo7zdQ3W3kVFH9QW0PbJ9ZBzwt/VUWkW7b48rBDC/vAaFFX4i4F89ayhr1gE5voGJME95w0Wa0euT2eviUmy7IAMXIud3l3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ymuwmvXt; 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="ymuwmvXt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDFDCC2BCB1; Wed, 8 Apr 2026 18:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775673958; bh=TV6j/Xr579/nfKTKVV28Bi2mUB5YW7mxV2uF8KX0eGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ymuwmvXtOvj+rFZvsQJroNhlXIx0YxkYxxAWKtvvdwGPMEhwV39l3JW8kIqOdbp/7 4WulAZzH7YxfL1zS53jQf2w9sPFgDjW5O469s1Qw3pxrrD/77XCaLTF5k0LRSy9W7h UaAyvDlJdnyxGdBIm4MOvWGW+jOQAx9//cXdM9VA= 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.12 155/242] iio: gyro: mpu3050: Fix incorrect free_irq() variable Date: Wed, 8 Apr 2026 20:03:15 +0200 Message-ID: <20260408175932.891790395@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408175927.064985309@linuxfoundation.org> References: <20260408175927.064985309@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.12-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 @@ -1272,7 +1272,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); }