]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: gyro: mpu3050: Fix out-of-sequence free_irq()
authorEthan Tidmore <ethantidmore06@gmail.com>
Tue, 24 Feb 2026 22:48:18 +0000 (16:48 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Mar 2026 11:20:11 +0000 (11:20 +0000)
commitd14116f6529fa085b1a1b1f224dc9604e4d2a29c
tree1130d9dea362224b93be4a23b0b598c820982910
parent4c05799449108fb0e0a6bd30e65fffc71e60db4d
iio: gyro: mpu3050: Fix out-of-sequence free_irq()

The triggered buffer is initialized before the IRQ is requested. The
removal path currently calls iio_triggered_buffer_cleanup() before
free_irq(). This violates the expected LIFO.

Place free_irq() in the correct location relative to
iio_triggered_buffer_cleanup().

Fixes: 3904b28efb2c7 ("iio: gyro: Add driver for the MPU-3050 gyroscope")
Suggested-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/mpu3050-core.c