File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ static int detect_quirks(struct snd_oxfw *oxfw)
208
208
static void do_registration (struct work_struct * work )
209
209
{
210
210
struct snd_oxfw * oxfw = container_of (work , struct snd_oxfw , dwork .work );
211
+ int i ;
211
212
int err ;
212
213
213
214
if (oxfw -> registered )
@@ -270,6 +271,12 @@ static void do_registration(struct work_struct *work)
270
271
snd_oxfw_stream_destroy_simplex (oxfw , & oxfw -> rx_stream );
271
272
if (oxfw -> has_output )
272
273
snd_oxfw_stream_destroy_simplex (oxfw , & oxfw -> tx_stream );
274
+ for (i = 0 ; i < SND_OXFW_STREAM_FORMAT_ENTRIES ; ++ i ) {
275
+ kfree (oxfw -> tx_stream_formats [i ]);
276
+ oxfw -> tx_stream_formats [i ] = NULL ;
277
+ kfree (oxfw -> rx_stream_formats [i ]);
278
+ oxfw -> rx_stream_formats [i ] = NULL ;
279
+ }
273
280
snd_card_free (oxfw -> card );
274
281
kfree (oxfw -> spec );
275
282
oxfw -> spec = NULL ;
You can’t perform that action at this time.
0 commit comments