diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index 7aad52ced0cd..f08fc0020dab 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -987,7 +987,7 @@ static bool __inet_csk_reqsk_queue_drop(struct sock *sk, { bool unlinked = reqsk_queue_unlink(req); - if (!from_timer && timer_delete_sync(&req->rsk_timer)) + if (!from_timer && del_timer_sync(&req->rsk_timer)) reqsk_put(req); if (unlinked) {