File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
drivers/net/wireless/ath/ath12k Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1891,7 +1891,8 @@ int ath12k_core_init(struct ath12k_base *ab)
18911891 if (!ag ) {
18921892 mutex_unlock (& ath12k_hw_group_mutex );
18931893 ath12k_warn (ab , "unable to get hw group\n" );
1894- return - ENODEV ;
1894+ ret = - ENODEV ;
1895+ goto err_unregister_notifier ;
18951896 }
18961897
18971898 mutex_unlock (& ath12k_hw_group_mutex );
@@ -1906,17 +1907,20 @@ int ath12k_core_init(struct ath12k_base *ab)
19061907 if (ret ) {
19071908 mutex_unlock (& ag -> mutex );
19081909 ath12k_warn (ab , "unable to create hw group\n" );
1909- goto err ;
1910+ goto err_destroy_hw_group ;
19101911 }
19111912 }
19121913
19131914 mutex_unlock (& ag -> mutex );
19141915
19151916 return 0 ;
19161917
1917- err :
1918+ err_destroy_hw_group :
19181919 ath12k_core_hw_group_destroy (ab -> ag );
19191920 ath12k_core_hw_group_unassign (ab );
1921+ err_unregister_notifier :
1922+ ath12k_core_panic_notifier_unregister (ab );
1923+
19201924 return ret ;
19211925}
19221926
You can’t perform that action at this time.
0 commit comments