ALSA: isight: fix isight_pcm_abort() crashes
commitafb74299dd59eace12ccd7f1e79fdf6c6c867076
authorClemens Ladisch <clemens@ladisch.de>
Tue, 22 Mar 2011 16:14:47 +0000 (22 17:14 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Tue, 22 Mar 2011 16:14:47 +0000 (22 17:14 +0100)
tree800a040a213d56f14b20467940aee4c2d8092150
parent49120234746353325aedf5148f71997a264fda6f
ALSA: isight: fix isight_pcm_abort() crashes

Fix crashes in isight_pcm_abort() that happen when the driver tries to
access isight->pcm->runtime which does not exist when the device is not
open.  Introduce a new field pcm_active to track this state.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Reported-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
sound/firewire/isight.c