diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/rawmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index 2f766123b158..0f5a194695d9 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c | |||
@@ -1257,7 +1257,7 @@ static ssize_t snd_rawmidi_write(struct file *file, const char __user *buf, | |||
1257 | break; | 1257 | break; |
1258 | count -= count1; | 1258 | count -= count1; |
1259 | } | 1259 | } |
1260 | if (file->f_flags & O_SYNC) { | 1260 | if (file->f_flags & O_DSYNC) { |
1261 | spin_lock_irq(&runtime->lock); | 1261 | spin_lock_irq(&runtime->lock); |
1262 | while (runtime->avail != runtime->buffer_size) { | 1262 | while (runtime->avail != runtime->buffer_size) { |
1263 | wait_queue_t wait; | 1263 | wait_queue_t wait; |