diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-01-10 08:06:38 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-11 05:12:17 -0500 |
commit | 31be5425d795585251a3ee970319c37643e0cda2 (patch) | |
tree | 2f690edfbdb4d6511cd05d7332bb232895d9d842 /lib/crc-ccitt.c | |
parent | c18ab0bac4c377b22e03f9cd4efafa1316b76552 (diff) |
ALSA: usb-audio: Fix NULL dereference by access to non-existing substream
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: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'lib/crc-ccitt.c')
0 files changed, 0 insertions, 0 deletions