mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[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:
parent
f2a67a5769
commit
dab6df6308
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue