mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
ANDROID: GKI: fix up build break where timer_delete_sync() was used
We reverted the commit that renamed del_timer_sync() to
timer_delete_sync() a long while back, but that breaks the build when
new users of the call get merged into LTS releases. Fix the tc358743
driver by using the "old" name of the function.
Fixes: 9205fb6e61 ("media: i2c: tc358743: Fix use-after-free bugs caused by orphan timer in probe")
Change-Id: I56b1a69965937b3187978d0ae04d8c483916290f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
d9d086d36e
commit
6c4d697461
1 changed files with 1 additions and 1 deletions
|
|
@ -2200,7 +2200,7 @@ static int tc358743_probe(struct i2c_client *client)
|
|||
err_work_queues:
|
||||
cec_unregister_adapter(state->cec_adap);
|
||||
if (!state->i2c_client->irq) {
|
||||
timer_delete_sync(&state->timer);
|
||||
del_timer_sync(&state->timer);
|
||||
flush_work(&state->work_i2c_poll);
|
||||
}
|
||||
cancel_delayed_work_sync(&state->delayed_work_enable_hotplug);
|
||||
|
|
|
|||
Loading…
Reference in a new issue