mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ax25: netrom: rose: Fix timer oopses
Wrong ax25_cb refcounting in ax25_send_frame() and by its callers can cause timer oopses (first reported with 2.6.29.6 kernel). Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=14905 Reported-by: Bernard Pidoux <[email protected]> Tested-by: Bernard Pidoux <[email protected]> Signed-off-by: Jarek Poplawski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
2a04cd4c7d
commit
d00c362f1b
5 changed files with 27 additions and 5 deletions
|
|
@ -92,6 +92,12 @@ ax25_cb *ax25_send_frame(struct sk_buff *skb, int paclen, ax25_address *src, ax2
|
|||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* There is one ref for the state machine; a caller needs
|
||||
* one more to put it back, just like with the existing one.
|
||||
*/
|
||||
ax25_cb_hold(ax25);
|
||||
|
||||
ax25_cb_add(ax25);
|
||||
|
||||
ax25->state = AX25_STATE_1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue