Skip to content

Commit

Permalink
fix krhino_work_init bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lingjun chen committed Nov 27, 2017
1 parent 0b7c2df commit a8984ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/rhino/core/k_workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ kstat_t krhino_work_init(kwork_t *work, work_handle_t handle, void *arg,
NULL_PARA_CHK(work);
NULL_PARA_CHK(handle);

memset(work, 0, sizeof(kwork_t));
klist_init(&(work->work_node));
work->handle = handle;
work->arg = arg;
Expand Down

0 comments on commit a8984ce

Please sign in to comment.