ALSA: isight: fix isight_pcm_abort() crashes
authorClemens Ladisch <clemens@ladisch.de>
Wed, 11 May 2011 08:47:30 +0000 (10:47 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 May 2011 12:51:09 +0000 (14:51 +0200)
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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

No differences found