File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -705,7 +705,7 @@ static int sta_info_insert_finish(struct sta_info *sta) __acquires(RCU)
705705 out_drop_sta :
706706 local -> num_sta -- ;
707707 synchronize_net ();
708- __cleanup_single_sta (sta );
708+ cleanup_single_sta (sta );
709709 out_err :
710710 mutex_unlock (& local -> sta_mtx );
711711 kfree (sinfo );
@@ -724,19 +724,13 @@ int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
724724
725725 err = sta_info_insert_check (sta );
726726 if (err ) {
727+ sta_info_free (local , sta );
727728 mutex_unlock (& local -> sta_mtx );
728729 rcu_read_lock ();
729- goto out_free ;
730+ return err ;
730731 }
731732
732- err = sta_info_insert_finish (sta );
733- if (err )
734- goto out_free ;
735-
736- return 0 ;
737- out_free :
738- sta_info_free (local , sta );
739- return err ;
733+ return sta_info_insert_finish (sta );
740734}
741735
742736int sta_info_insert (struct sta_info * sta )
You can’t perform that action at this time.
0 commit comments