]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit4b30fbde910dd40b831528e916cb8a91823f618f
tree1956131fa83e0d68f72de442501ffa3be65d86b9
parent67d112842586aa11506b7a8afec29391bf8f3cca
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