Update of /cvsroot/alsa/alsa-lib/src/pcm
In directory sc8-pr-cvs1:/tmp/cvs-serv5456
Modified Files:
pcm.c
Log Message:
NULL check in mmap_begin()
Index: pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v
retrieving revision 1.259
retrieving revision 1.260
diff -u -r1.259 -r1.260
--- pcm.c 16 Jul 2003 19:31:42 -0000 1.259
+++ pcm.c 23 Jul 2003 06:57:53 -0000 1.260
@@ -5955,8 +5955,12 @@
snd_pcm_uframes_t cont;
snd_pcm_uframes_t f;
snd_pcm_uframes_t avail;
+ const snd_pcm_channel_area_t *xareas;
assert(pcm && areas && offset && frames);
- *areas = snd_pcm_mmap_areas(pcm);
+ xareas = snd_pcm_mmap_areas(pcm);
+ if (xareas == NULL)
+ return -EBADFD;
+ *areas = xareas;
*offset = *pcm->appl.ptr % pcm->buffer_size;
avail = snd_pcm_mmap_avail(pcm);
if (avail > pcm->buffer_size)
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog