From: Clemens Ladisch Date: Wed, 21 Oct 2009 07:10:16 +0000 (+0200) Subject: sound: rawmidi: fix checking of O_APPEND when opening MIDI device X-Git-Tag: v2.6.32-rc7~39^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16fb109644b5644e42ececeff644514de6f4bd03;p=pandora-kernel.git sound: rawmidi: fix checking of O_APPEND when opening MIDI device 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 Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed