]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:21:04 +0000 (10:21 -0800)
commit1a65ef117b0bcb58f5e8b97dc477728e98d3a795
treecebeb6da5b108a219339f6af79fa668cd232ddc2
parente38dcb2b06e60459054478d79e22ef179f8ae798
sound: rawmidi: fix checking of O_APPEND when opening MIDI device

commit 16fb109644b5644e42ececeff644514de6f4bd03 upstream.

Commit 9a1b64caac82aa02cb74587ffc798e6f42c6170a 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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/core/rawmidi.c