patch-2.1.43 linux/drivers/sound/dmabuf.c

Next file: linux/drivers/sound/soundcard.c
Previous file: linux/drivers/scsi/script_asm.pl
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/drivers/sound/dmabuf.c linux/drivers/sound/dmabuf.c
@@ -802,6 +802,8 @@
    */
 
   max = dmap->max_fragments;
+  if (max > dmap->nbufs)
+     max = dmap->nbufs;
   len = dmap->qlen;
 
   if (audio_devs[dev]->d->local_qlen)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov