]> git.baikalelectronics.ru Git - kernel.git/commit
oss: fix O_NONBLOCK in dmasound_core
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 1 Nov 2008 18:19:49 +0000 (18:19 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Nov 2008 19:40:38 +0000 (12:40 -0700)
commitc2330c4236416cf6626f26742b78bb755ce938cc
tree1956131fa83e0d68f72de442501ffa3be65d86b9
parent7384e302ee83a467231bef1d25cddf6ebe309283
oss: fix O_NONBLOCK in dmasound_core

We broke O_NONBLOCK handling in OSS dmasound_core in 2.3.11-pre3 - the
original code copied f_flags to open_mode and then checked for
O_NONBLOCK in there, but that got changed to copying f_mode and
O_NONBLOCK has not reached that field in any kernel version.

Since we do not care for any other bits, the fix is obvious...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
sound/oss/dmasound/dmasound.h
sound/oss/dmasound/dmasound_core.c