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 @@ -688,7 +688,7 @@ static int sta_info_insert_finish(struct sta_info *sta) __acquires(RCU)
688688 out_drop_sta :
689689 local -> num_sta -- ;
690690 synchronize_net ();
691- __cleanup_single_sta (sta );
691+ cleanup_single_sta (sta );
692692 out_err :
693693 mutex_unlock (& local -> sta_mtx );
694694 kfree (sinfo );
@@ -707,19 +707,13 @@ int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
707707
708708 err = sta_info_insert_check (sta );
709709 if (err ) {
710+ sta_info_free (local , sta );
710711 mutex_unlock (& local -> sta_mtx );
711712 rcu_read_lock ();
712- goto out_free ;
713+ return err ;
713714 }
714715
715- err = sta_info_insert_finish (sta );
716- if (err )
717- goto out_free ;
718-
719- return 0 ;
720- out_free :
721- sta_info_free (local , sta );
722- return err ;
716+ return sta_info_insert_finish (sta );
723717}
724718
725719int sta_info_insert (struct sta_info * sta )
You can’t perform that action at this time.
0 commit comments