X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=net%2Fx25%2Faf_x25.c;h=562cc11131f6c8ba37cb5e4e09b1587dca3c8a2c;hb=841b86f3289dbe858daeceec36423d4ea286fac2;hp=ea87143314f3048f8f08ae6974f7f9938e306350;hpb=919b250f8570618e84af544c3e18dad5210eb9b6;p=mirror_ubuntu-bionic-kernel.git diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index ea87143314f3..562cc11131f6 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c @@ -415,7 +415,7 @@ static void __x25_destroy_socket(struct sock *sk) if (sk_has_allocations(sk)) { /* Defer: outstanding buffers */ sk->sk_timer.expires = jiffies + 10 * HZ; - sk->sk_timer.function = (TIMER_FUNC_TYPE)x25_destroy_timer; + sk->sk_timer.function = x25_destroy_timer; add_timer(&sk->sk_timer); } else { /* drop last reference so sock_put will free */