X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=sound%2Foss%2Fau1550_ac97.c;h=4191acccbcdb93fab12373847688b91103d52c65;hb=1bf8d6366435958b15a4091e7d4fdd1fa8ebc9e2;hp=81e1f443d0948b223cdfdaf4d58aeb68452e59fa;hpb=a8022697811c3f2271df5ec14fa6f518b731b46a;p=linux-2.6-omap-h63xx.git diff --git a/sound/oss/au1550_ac97.c b/sound/oss/au1550_ac97.c index 81e1f443d09..4191acccbcd 100644 --- a/sound/oss/au1550_ac97.c +++ b/sound/oss/au1550_ac97.c @@ -1627,7 +1627,9 @@ au1550_ioctl(struct inode *inode, struct file *file, unsigned int cmd, sizeof(abinfo)) ? -EFAULT : 0; case SNDCTL_DSP_NONBLOCK: + spin_lock(&file->f_lock); file->f_flags |= O_NONBLOCK; + spin_unlock(&file->f_lock); return 0; case SNDCTL_DSP_GETODELAY: