]> git.baikalelectronics.ru Git - kernel.git/commit
sound: rawmidi: fix checking of O_APPEND when opening MIDI device
authorClemens Ladisch <clemens@ladisch.de>
Wed, 21 Oct 2009 07:10:16 +0000 (09:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 10 Nov 2009 15:21:30 +0000 (16:21 +0100)
commit2053be980f0a68f91108a79b85fd16569e0fcb55
tree8f05be8292e049627ac800b4bff301e0a7e84f05
parentb179f1ec7f304cd6856f1b744b99c5bd2c3020d1
sound: rawmidi: fix checking of O_APPEND when opening MIDI device

Commit 3c4c7477def325abd54b15e2b08b3dac7bb8f5f4 in 2.6.30 dropped the
check that a substream must already have been opened with O_APPEND to be
able to open it a second time.

This would make it possible for a substream to be switched to append
mode, which would mean that non-atomic writes would fail unexpectedly.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/rawmidi.c