diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2009-10-21 09:11:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-08 10:21:07 -0800 |
commit | 80bc5c1318442367dbcdccfa737ec952548088a3 (patch) | |
tree | 6f9eda97c9c6241e67aaaf7083d77c8bfb8c4937 /mm | |
parent | dfe0b47c1e940dbe2f59133c08c485dee78668c5 (diff) |
sound: rawmidi: fix MIDI device O_APPEND error handling
commit b7fe750fcceda4fa6bef399b0e2812562728ea82 upstream.
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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions