nl80211: Cancel rfkill timeout on deinit
Got segfault, when freeing drv and there exists registered timeout for blocked rfkill. This patch adds cancel timeout to avoid this. Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
This commit is contained in:
		
							parent
							
								
									fa653bf4ad
								
							
						
					
					
						commit
						e390df0553
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -4824,6 +4824,7 @@ static void wpa_driver_nl80211_deinit(struct i802_bss *bss) | |||
| 
 | ||||
| 	netlink_send_oper_ifla(drv->global->netlink, drv->ifindex, 0, | ||||
| 			       IF_OPER_UP); | ||||
| 	eloop_cancel_timeout(wpa_driver_nl80211_send_rfkill, drv, drv->ctx); | ||||
| 	rfkill_deinit(drv->rfkill); | ||||
| 
 | ||||
| 	eloop_cancel_timeout(wpa_driver_nl80211_scan_timeout, drv, drv->ctx); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Eduardo Abinader
						Eduardo Abinader