X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=sound%2Fcore%2Finit.c;h=ef41f5b3a240db656e31034ce12189857cc08d1a;hb=c99c4d0ca57c978dcc2a2f41ab8449684ea154cc;hp=45f4b01de23fb41b9ee1f0a09d4efc438a0df448;hpb=b0e22b47f650b53dbb094cd0011a48f6f3ae3e29;p=linux-2.6-microblaze.git diff --git a/sound/core/init.c b/sound/core/init.c index 45f4b01de23f..ef41f5b3a240 100644 --- a/sound/core/init.c +++ b/sound/core/init.c @@ -398,10 +398,8 @@ int snd_card_disconnect(struct snd_card *card) return 0; } card->shutdown = 1; - spin_unlock(&card->files_lock); /* replace file->f_op with special dummy operations */ - spin_lock(&card->files_lock); list_for_each_entry(mfile, &card->files_list, list) { /* it's critical part, use endless loop */ /* we have no room to fail */