Fix lmp_lsap_inuse()
PATCH 1/1 Fix lmp_lsap_inuse()
ir269_lmp_lsap_inuse-3.diff :
~~~~~~~~~~~~~~~~~~~~~~~~~~~
o [CRITICA] Fix locking in error path in IrLMP (Stanford checker)
o [CORRECT] Don't reuse unconnected LSAPs (listening sockets)
o [CORRECT] Make sure the LSAP we are picking has just not been grabed
o [CORRECT] Wrap around the LSAP space properly back to 0x10
Signed-off-by Jean Tourrilhes <[email protected]>
include/net/irda/irlmp.h renamed from include/net/irda/irlmp.d0.h +2 -1
@@ -175,7 +175,8 @@ struct irlmp_cb {discovery_t discovery_cmd;/* Discovery command to use by IrLAP */ discovery_t discovery_rsp;/* Discovery response to use by IrLAP */ -int free_lsap_sel; +/* Last lsap picked automatically by irlmp_find_free_slsap() */ +int last_lsap_sel;struct timer_list discovery_timer;
net/irda/irlmp.c renamed from net/irda/irlmp.d0.c +89 -19
168 lines not on this page · raw message