diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2009-10-21 09:11:43 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-10 16:22:59 +0100 |
commit | b7fe750fcceda4fa6bef399b0e2812562728ea82 (patch) | |
tree | b309dee386e4c0d5b47166338e5a81af50a58eb6 /sound/i2c | |
parent | 16fb109644b5644e42ececeff644514de6f4bd03 (diff) |
sound: rawmidi: fix MIDI device O_APPEND error handling
Commit 9a1b64caac82aa02cb74587ffc798e6f42c6170a in 2.6.30 broke the
error handling code in rawmidi_open_priv().
If only the output substream of a RawMIDI device has been opened and
if this device is then opened with O_RDWR | O_APPEND and if the
initialization of the input substream fails (either because of low
memory or because the device driver's open callback fails), then the
runtime structure of the already open output substream will be freed
and all following writes through the first handle will cause
snd_rawmidi_write() to use the NULL runtime pointer.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/i2c')
0 files changed, 0 insertions, 0 deletions