Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sound: rawmidi: fix double init when opening MIDI device with O_APPEND
Commit 9a1b64c in 2.6.30 moved the substream initialization code to where it would be executed every time the substream is opened. This had the consequence that any further opening would drop and leak the data in the existing buffer, and that the device driver's open callback would be called multiple times, unexpectedly. Signed-off-by: Clemens Ladisch <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
- Loading branch information