-
由 Takashi Iwai 提交于
The commit [0d9741c0: ALSA: usb-audio: sync ep init fix for audioformat mismatch] introduced the correction of parameters to be set for sync EP. But since the new code assumes that the sync EP is always paired with the data EP of another direction, it triggers Oops when a device only with a single direction is used. This patch adds a proper check of sync EP type and the presence of the paired substream for avoiding the crash. Reported-and-tested-by: NJens Axboe <axboe@kernel.dk> Signed-off-by: NTakashi Iwai <tiwai@suse.de>
31be5425