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>
Šī revīzija ir iekļauta:
Al Viro
2008-11-01 18:19:49 +00:00
revīziju iesūtīja Linus Torvalds
vecāks 67d1128425
revīzija 4b30fbde91
2 mainīti faili ar 3 papildinājumiem un 3 dzēšanām

Parādīt failu

@@ -235,7 +235,7 @@ struct sound_queue {
*/
int active;
wait_queue_head_t action_queue, open_queue, sync_queue;
fmode_t open_mode;
int non_blocking;
int busy, syncing, xruns, died;
};