wcn36xx: Fix error handling
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Wed, 8 Mar 2017 11:52:09 +0000 (13:52 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 9 Mar 2017 08:01:16 +0000 (10:01 +0200)
Reorder 'out_free_dxe_pool' and 'out_free_dxe_ctl' error handling labels
in order to match the way resources have been allocated.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wcn36xx/main.c

index 7a0c2e7da7f643333506e595d39fd988b535825e..2b05154d05a47fd3b5b2180e87fa6a686dc5429d 100644 (file)
@@ -337,10 +337,10 @@ out_smd_stop:
        wcn36xx_smd_stop(wcn);
 out_free_smd_buf:
        kfree(wcn->hal_buf);
-out_free_dxe_pool:
-       wcn36xx_dxe_free_mem_pools(wcn);
 out_free_dxe_ctl:
        wcn36xx_dxe_free_ctl_blks(wcn);
+out_free_dxe_pool:
+       wcn36xx_dxe_free_mem_pools(wcn);
 out_smd_close:
        wcn36xx_smd_close(wcn);
 out_err: