af_rose.c (97a4649d6ffce4a5d7f5ce018d87a6cefcb4ad03) | af_rose.c (b24b8a247ff65c01b252025926fe564209fae4fc) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) --- 331 unchanged lines hidden (view full) --- 340 } 341 342 kfree_skb(skb); 343 } 344 345 if (atomic_read(&sk->sk_wmem_alloc) || 346 atomic_read(&sk->sk_rmem_alloc)) { 347 /* Defer: outstanding buffers */ | 1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) --- 331 unchanged lines hidden (view full) --- 340 } 341 342 kfree_skb(skb); 343 } 344 345 if (atomic_read(&sk->sk_wmem_alloc) || 346 atomic_read(&sk->sk_rmem_alloc)) { 347 /* Defer: outstanding buffers */ |
348 init_timer(&sk->sk_timer); | 348 setup_timer(&sk->sk_timer, rose_destroy_timer, 349 (unsigned long)sk); |
349 sk->sk_timer.expires = jiffies + 10 * HZ; | 350 sk->sk_timer.expires = jiffies + 10 * HZ; |
350 sk->sk_timer.function = rose_destroy_timer; 351 sk->sk_timer.data = (unsigned long)sk; | |
352 add_timer(&sk->sk_timer); 353 } else 354 sock_put(sk); 355} 356 357/* 358 * Handling for system calls applied via the various interfaces to a 359 * ROSE socket object. --- 1293 unchanged lines hidden --- | 351 add_timer(&sk->sk_timer); 352 } else 353 sock_put(sk); 354} 355 356/* 357 * Handling for system calls applied via the various interfaces to a 358 * ROSE socket object. --- 1293 unchanged lines hidden --- |