[PATCH] Call init_timer() for ISDN PPP CCP reset state timer

The function isdn_ppp_ccp_reset_alloc_state() sets ->timer.function
and ->timer.data and later on calls add_timer() with no init_timer()
ever done.

Noted by Al Viro.

Signed-off-by: Marcel Holtmann <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Karsten Keil <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Marcel Holtmann 2006-12-21 23:06:24 +01:00 • committed by Linus Torvalds
commit dab6df6308

View file

@ -2339,6 +2339,7 @@ static struct ippp_ccp_reset_state *isdn_ppp_ccp_reset_alloc_state(struct ippp_s
rs->state = CCPResetIdle;
rs->is = is;
rs->id = id;
init_timer(&rs->timer);
rs->timer.data = (unsigned long)rs;
rs->timer.function = isdn_ppp_ccp_timer_callback;
is->reset->rs[id] = rs;