From: <jmk...@us...> - 2003-08-29 03:45:27
|
Update of /cvsroot/emc/rtapi/src/rtapi In directory sc8-pr-cvs1:/tmp/cvs-serv21267/src/rtapi Modified Files: rtl_rtapi.c Log Message: oops, last commit had a couple errors Index: rtl_rtapi.c =================================================================== RCS file: /cvsroot/emc/rtapi/src/rtapi/rtl_rtapi.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** rtl_rtapi.c 29 Aug 2003 03:35:23 -0000 1.9 --- rtl_rtapi.c 29 Aug 2003 03:45:23 -0000 1.10 *************** *** 508,512 **** } /* limit period to 2 micro-seconds min, 10 milli-second max (RTLinux limit) */ ! if ((nsecs < 2000) || (nsecs > 1000000000L)) { return RTAPI_INVAL; } --- 508,512 ---- } /* limit period to 2 micro-seconds min, 10 milli-second max (RTLinux limit) */ ! if ((nsecs < 2000) || (nsecs > 10000000L)) { return RTAPI_INVAL; } *************** *** 696,700 **** if (retval != 0) { /* create failed, free task data memory */ - kfree(ostask_array[task_id]); mutex_give(&(rtapi_data->mutex)); if (retval == ENOMEM) { --- 696,699 ---- *************** *** 758,763 **** /* get rid of task - delete may be more robust than cancel/join */ pthread_delete_np(ostask_array[task_id]); - /* free kernel memory */ - kfree(ostask_array[task_id]); /* update data */ task->state = EMPTY; --- 757,760 ---- |