Changes in kernel/generic/src/udebug/udebug_ops.c [87a2f9b:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug_ops.c
r87a2f9b rfeeac0d 375 375 if (TASK->udebug.dt_state != UDEBUG_TS_ACTIVE) { 376 376 mutex_unlock(&TASK->udebug.lock); 377 free(id_buffer);378 377 return EINVAL; 379 378 } … … 457 456 int udebug_args_read(thread_t *thread, void **buffer) 458 457 { 458 /* Prepare a buffer to hold the arguments. */ 459 sysarg_t *arg_buffer = malloc(6 * sizeof(sysarg_t), 0); 460 459 461 /* On success, this will lock t->udebug.lock. */ 460 462 int rc = _thread_op_begin(thread, false); … … 469 471 } 470 472 471 /* Prepare a buffer to hold the arguments. */472 sysarg_t *arg_buffer = malloc(6 * sizeof(sysarg_t), 0);473 474 473 /* Copy to a local buffer before releasing the lock. */ 475 474 memcpy(arg_buffer, thread->udebug.syscall_args, 6 * sizeof(sysarg_t)); … … 500 499 int udebug_regs_read(thread_t *thread, void **buffer) 501 500 { 501 /* Prepare a buffer to hold the data. */ 502 istate_t *state_buf = malloc(sizeof(istate_t), 0); 503 502 504 /* On success, this will lock t->udebug.lock */ 503 505 int rc = _thread_op_begin(thread, false); … … 510 512 return EBUSY; 511 513 } 512 513 /* Prepare a buffer to hold the data. */514 istate_t *state_buf = malloc(sizeof(istate_t), 0);515 514 516 515 /* Copy to the allocated buffer */
Note:
See TracChangeset
for help on using the changeset viewer.