qcacmn: avoid access sm before NULL check
This change moves accessing sm after NULL check performed Change-Id: Iad1c0d9ea9c8bb6e79338259ab93f685b78ad26f CRs-Fixed: 2407091
This commit is contained in:

committed by
nshrivas

vanhempi
09444a10ed
commit
9527e111d0
@@ -79,7 +79,7 @@ qdf_export_symbol(wlan_sm_dispatch);
|
||||
|
||||
void wlan_sm_transition_to(struct wlan_sm *sm, uint8_t state)
|
||||
{
|
||||
const struct wlan_sm_state_info *state_info = sm->state_info;
|
||||
struct wlan_sm_state_info *state_info;
|
||||
uint8_t new_state;
|
||||
uint8_t old_state;
|
||||
uint8_t new_sub_st;
|
||||
@@ -91,6 +91,7 @@ void wlan_sm_transition_to(struct wlan_sm *sm, uint8_t state)
|
||||
return;
|
||||
}
|
||||
|
||||
state_info = sm->state_info;
|
||||
cur_state = sm->cur_state;
|
||||
|
||||
/* cannot change state from state entry/exit routines */
|
||||
|
Viittaa uudesa ongelmassa
Block a user