Index: drivers/sound/via82cxxx_audio.c =================================================================== RCS file: /cvsroot/gkernel/linux_2_4/drivers/sound/via82cxxx_audio.c,v retrieving revision 1.1.1.11.2.1 diff -u -r1.1.1.11.2.1 via82cxxx_audio.c --- drivers/sound/via82cxxx_audio.c 2001/02/04 19:07:03 1.1.1.11.2.1 +++ drivers/sound/via82cxxx_audio.c 2001/02/05 18:24:48 @@ -1649,6 +1649,9 @@ u8 status; int n; + assert (chan != NULL); + assert (chan->sgtable != NULL); + /* check pertinent bits of status register for action bits */ status = inb (chan->iobase) & (VIA_SGD_FLAG | VIA_SGD_EOL | VIA_SGD_STOPPED); if (!status) @@ -1728,6 +1731,8 @@ { struct via_info *card = dev_id; u32 status32; + + assert (card != NULL); /* to minimize interrupt sharing costs, we use the SGD status * shadow register to check the status of all inputs and