ChangeSet 1.2181.25.23, 2005/03/22 09:09:39+01:00, [EMAIL PROTECTED]

        [ALSA] fix bug with pci hotplug mode
        
        MIXART driver
        There is a bug with mixart driver, when using hotplug:
        accessing NULL pointer -> segmentation fault
        
        Signed-off-by: Markus Bollinger <[EMAIL PROTECTED]>
        Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>



 mixart.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c
--- a/sound/pci/mixart/mixart.c 2005-03-30 16:14:04 -08:00
+++ b/sound/pci/mixart/mixart.c 2005-03-30 16:14:04 -08:00
@@ -1062,7 +1062,7 @@
                free_irq(mgr->irq, (void *)mgr);
 
        /* reset board if some firmware was loaded */
-       if(mgr->hwdep->dsp_loaded) {
+       if(mgr->dsp_loaded) {
                snd_mixart_reset_board(mgr);
                snd_printdd("reset miXart !\n");
        }
@@ -1203,7 +1203,7 @@
        snd_iprintf(buffer, "Digigram miXart (alsa card %d)\n\n", 
chip->chip_idx);
 
        /* stats available when embedded OS is running */
-       if (chip->mgr->hwdep->dsp_loaded & ( 1 << 
MIXART_MOTHERBOARD_ELF_INDEX)) {
+       if (chip->mgr->dsp_loaded & ( 1 << MIXART_MOTHERBOARD_ELF_INDEX)) {
                snd_iprintf(buffer, "- hardware -\n");
                switch (chip->mgr->board_type ) {
                case MIXART_DAUGHTER_TYPE_NONE     : snd_iprintf(buffer, 
"\tmiXart8 (no daughter board)\n\n"); break;
@@ -1381,7 +1381,7 @@
                }
        }
 
-       /* init firmware status (mgr->hwdep->dsp_loaded reset in hwdep_new) */
+       /* init firmware status (mgr->dsp_loaded reset in hwdep_new) */
        mgr->board_type = MIXART_DAUGHTER_TYPE_NONE;
 
        /* create array of streaminfo */
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to