diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-07-03 03:27:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-07-03 10:17:52 +0200 |
commit | 326534e837c731496bdf0e02a8a61e987eb3bed0 (patch) | |
tree | 178ec7c903d93492bfaf0de2bf7c9350b112975a | |
parent | wireguard: netlink: send staged packets when setting initial private key (diff) | |
download | linux-326534e837c731496bdf0e02a8a61e987eb3bed0.tar.xz linux-326534e837c731496bdf0e02a8a61e987eb3bed0.zip |
wireguard: timers: move to using timer_delete_sync
The documentation says that del_timer_sync is obsolete, and code should
use the equivalent timer_delete_sync instead, so switch to it.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/wireguard/timers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireguard/timers.c b/drivers/net/wireguard/timers.c index 53d8a57a0dfa..968bdb4df0b3 100644 --- a/drivers/net/wireguard/timers.c +++ b/drivers/net/wireguard/timers.c @@ -234,10 +234,10 @@ void wg_timers_init(struct wg_peer *peer) void wg_timers_stop(struct wg_peer *peer) { - del_timer_sync(&peer->timer_retransmit_handshake); - del_timer_sync(&peer->timer_send_keepalive); - del_timer_sync(&peer->timer_new_handshake); - del_timer_sync(&peer->timer_zero_key_material); - del_timer_sync(&peer->timer_persistent_keepalive); + timer_delete_sync(&peer->timer_retransmit_handshake); + timer_delete_sync(&peer->timer_send_keepalive); + timer_delete_sync(&peer->timer_new_handshake); + timer_delete_sync(&peer->timer_zero_key_material); + timer_delete_sync(&peer->timer_persistent_keepalive); flush_work(&peer->clear_peer_work); } |