Update of /cvsroot/alsa/alsa-driver/acore In directory sc8-pr-cvs1:/tmp/cvs-serv30405/acore
Modified Files: misc.c Log Message: - don't duplicate the work struct in schedule_work() compatible function. Index: misc.c =================================================================== RCS file: /cvsroot/alsa/alsa-driver/acore/misc.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- misc.c 9 May 2003 18:43:55 -0000 1.19 +++ misc.c 4 Jun 2003 17:26:33 -0000 1.20 @@ -217,25 +217,20 @@ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 8) reparent_to_init(); #endif - strcpy(current->comm, "snd-free"); /* FIXME: different names? */ + strcpy(current->comm, "snd"); /* FIXME: different names? */ works->func(works->data); #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) unlock_kernel(); #endif - kfree(works); return 0; } int snd_compat_schedule_work(struct work_struct *works) { - struct work_struct *wp = kmalloc(sizeof(*wp), GFP_KERNEL); - if (! wp) - return 0; - *wp = *works; - return kernel_thread(work_caller, wp, 0) >= 0; + return kernel_thread(work_caller, works, 0) >= 0; } #endif ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog