projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use f_lock to protect f_flags
[linux-2.6-block.git]
/
sound
/
oss
/
vwsnd.c
diff --git
a/sound/oss/vwsnd.c
b/sound/oss/vwsnd.c
index 78b8acc7c3b96358330f8223906b3fb64dcc84db..187f72750e8f9796734bf34c511ab8791868f247 100644
(file)
--- a/
sound/oss/vwsnd.c
+++ b/
sound/oss/vwsnd.c
@@
-2673,7
+2673,9
@@
static int vwsnd_audio_do_ioctl(struct inode *inode,
case SNDCTL_DSP_NONBLOCK: /* _SIO ('P',14) */
DBGX("SNDCTL_DSP_NONBLOCK\n");
+ spin_lock(&file->f_lock);
file->f_flags |= O_NONBLOCK;
+ spin_unlock(&file->f_lock);
return 0;
case SNDCTL_DSP_RESET: /* _SIO ('P', 0) */