diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/seq/seq_ports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/seq_ports.c b/sound/core/seq/seq_ports.c index d88153438d69..eefd1cf872b4 100644 --- a/sound/core/seq/seq_ports.c +++ b/sound/core/seq/seq_ports.c | |||
@@ -245,9 +245,9 @@ static void clear_subscriber_list(struct snd_seq_client *client, | |||
245 | list_del(&subs->dest_list); | 245 | list_del(&subs->dest_list); |
246 | else | 246 | else |
247 | list_del(&subs->src_list); | 247 | list_del(&subs->src_list); |
248 | up_write(&agrp->list_mutex); | ||
248 | unsubscribe_port(c, aport, agrp, &subs->info, 1); | 249 | unsubscribe_port(c, aport, agrp, &subs->info, 1); |
249 | kfree(subs); | 250 | kfree(subs); |
250 | up_write(&agrp->list_mutex); | ||
251 | snd_seq_port_unlock(aport); | 251 | snd_seq_port_unlock(aport); |
252 | snd_seq_client_unlock(c); | 252 | snd_seq_client_unlock(c); |
253 | } | 253 | } |