mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
tegra_hte_test_remove() releases GPIO descriptors before stopping
hte.timer. gpio_timer_cb() accesses hte.gpio_out and rearms the timer, so
a callback concurrent with remove can use a released descriptor and rearm
after teardown.
Shut down the timer before releasing the GPIO descriptors.
timer_shutdown_sync() waits for a running callback and prevents it from
being rearmed.
Fixes:
|
||
|---|---|---|
| .. | ||
| hte-tegra194-test.c | ||
| hte-tegra194.c | ||
| hte.c | ||
| Kconfig | ||
| Makefile | ||