ALSA: oxfw: fix NULL pointer dereference to unused stream structure
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 26 Aug 2019 13:54:15 +0000 (22:54 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 Aug 2019 13:56:01 +0000 (15:56 +0200)
commit4c098dab121a4164e9daa4d1ddbc59e93054e79e
treee45b1d4ebfc19cd527b802013f45bc6b320ea068
parentb39e077fcb283dd96dd251a3abeba585402c61fe
ALSA: oxfw: fix NULL pointer dereference to unused stream structure

ALSA oxfw driver supports Griffin FireWave. This device supports one
isochronous stream for PCM playback. Current driver executes code to
wait event for stream structure of opposite direction. This causes
NULL pointer dereference.

This commit fixes the bug.

Fixes: ac5d77864cfc ("ALSA: oxfw: support AMDTP domain")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/oxfw/oxfw-stream.c