Update of /cvsroot/alsa/alsa-kernel/pci/emu10k1 In directory sc8-pr-cvs1:/tmp/cvs-serv14806/pci/emu10k1
Modified Files: emufx.c Log Message: Cleanups for EMU10K1 ioctls, fixed PCM_PEEK one Index: emufx.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emufx.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- emufx.c 1 Jul 2003 09:22:34 -0000 1.34 +++ emufx.c 1 Jul 2003 10:07:54 -0000 1.35 @@ -2299,6 +2299,10 @@ ipcm = (emu10k1_fx8010_pcm_t *)snd_kcalloc(sizeof(*ipcm), GFP_KERNEL); if (ipcm == NULL) return -ENOMEM; + if (copy_from_user(ipcm, (void *)arg, sizeof(*ipcm))) { + kfree(ipcm); + return -EFAULT; + } res = snd_emu10k1_ipcm_peek(emu, ipcm); if (res == 0 && copy_to_user((void *)arg, ipcm, sizeof(*ipcm))) { kfree(ipcm); ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog