aboutsummaryrefslogtreecommitdiff
path: root/src/zjs_callbacks.c
diff options
context:
space:
mode:
authorGeoff Gustafson <geoff@linux.intel.com>2017-08-31 15:05:49 -0700
committerGeoff Gustafson <geoff@linux.intel.com>2017-09-05 09:55:48 -0700
commit2cfcb6660c408bd005b78863c25791d9d226beb1 (patch)
tree3d5a107497ae91e1fbe725afe689549a79dd8ce2 /src/zjs_callbacks.c
parentd84b8e147a018e0ff6469550552d6ee4989f251f (diff)
[callbacks] Fix size calculation in zjs_defer_work
Second time I've had to find this bug; apparently forget to commit it last time. :( Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
Diffstat (limited to 'src/zjs_callbacks.c')
-rw-r--r--src/zjs_callbacks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zjs_callbacks.c b/src/zjs_callbacks.c
index 3b2af3e..f5d323f 100644
--- a/src/zjs_callbacks.c
+++ b/src/zjs_callbacks.c
@@ -563,7 +563,7 @@ u8_t zjs_service_callbacks(void)
void zjs_defer_work(zjs_deferred_work callback, const void *buffer, u32_t bytes)
{
DBG_PRINT("deferring work: %d bytes\n", bytes);
- int len = sizeof(callback) + bytes;
+ int len = sizeof(deferred_work_t) + bytes;
char buf[len];
deferred_work_t *defer = (deferred_work_t *)buf;
defer->callback = callback;