diff options
Diffstat (limited to 'net/tipc/subscr.c')
| -rw-r--r-- | net/tipc/subscr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index be3d9e3183dc..251065dfd8df 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
| @@ -133,9 +133,9 @@ void tipc_subscrp_report_overlap(struct tipc_subscription *sub, u32 found_lower, | |||
| 133 | node); | 133 | node); |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | static void tipc_subscrp_timeout(unsigned long data) | 136 | static void tipc_subscrp_timeout(struct timer_list *t) |
| 137 | { | 137 | { |
| 138 | struct tipc_subscription *sub = (struct tipc_subscription *)data; | 138 | struct tipc_subscription *sub = from_timer(sub, t, timer); |
| 139 | struct tipc_subscriber *subscriber = sub->subscriber; | 139 | struct tipc_subscriber *subscriber = sub->subscriber; |
| 140 | 140 | ||
| 141 | spin_lock_bh(&subscriber->lock); | 141 | spin_lock_bh(&subscriber->lock); |
| @@ -303,7 +303,7 @@ static void tipc_subscrp_subscribe(struct net *net, struct tipc_subscr *s, | |||
| 303 | tipc_subscrb_get(subscriber); | 303 | tipc_subscrb_get(subscriber); |
| 304 | spin_unlock_bh(&subscriber->lock); | 304 | spin_unlock_bh(&subscriber->lock); |
| 305 | 305 | ||
| 306 | setup_timer(&sub->timer, tipc_subscrp_timeout, (unsigned long)sub); | 306 | timer_setup(&sub->timer, tipc_subscrp_timeout, 0); |
| 307 | timeout = htohl(sub->evt.s.timeout, swap); | 307 | timeout = htohl(sub->evt.s.timeout, swap); |
| 308 | 308 | ||
| 309 | if (timeout != TIPC_WAIT_FOREVER) | 309 | if (timeout != TIPC_WAIT_FOREVER) |
