File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -723,8 +723,8 @@ static int sdw_bank_switch(struct sdw_bus *bus, int m_rt_count)
723
723
}
724
724
725
725
if (!multi_link ) {
726
- kfree (wr_msg );
727
726
kfree (wbuf );
727
+ kfree (wr_msg );
728
728
bus -> defer_msg .msg = NULL ;
729
729
bus -> params .curr_bank = !bus -> params .curr_bank ;
730
730
bus -> params .next_bank = !bus -> params .next_bank ;
@@ -769,6 +769,7 @@ static int sdw_ml_sync_bank_switch(struct sdw_bus *bus)
769
769
if (bus -> defer_msg .msg ) {
770
770
kfree (bus -> defer_msg .msg -> buf );
771
771
kfree (bus -> defer_msg .msg );
772
+ bus -> defer_msg .msg = NULL ;
772
773
}
773
774
774
775
return 0 ;
@@ -867,6 +868,7 @@ static int do_bank_switch(struct sdw_stream_runtime *stream)
867
868
if (bus -> defer_msg .msg ) {
868
869
kfree (bus -> defer_msg .msg -> buf );
869
870
kfree (bus -> defer_msg .msg );
871
+ bus -> defer_msg .msg = NULL ;
870
872
}
871
873
}
872
874
You can’t perform that action at this time.
0 commit comments