YaGL: Fix transport separate short command skip bug 51/19751/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Thu, 17 Apr 2014 08:28:36 +0000 (12:28 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Thu, 17 Apr 2014 08:31:28 +0000 (12:31 +0400)
Separate short commands (1 unit long) could be skipped due
to incorrect check, this is now fixed

Change-Id: I8736abb171e35563580407a25cdffadfc589ed18
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
hw/yagl/yagl_transport.c

index 56da9c8b4af253d1109b59e1f59faf12fbeab5d0..00919878d9abffcad0124d968de9a4da8a1a207b 100644 (file)
@@ -236,7 +236,7 @@ bool yagl_transport_begin_call(struct yagl_transport *t,
                                yagl_api_id *api_id,
                                yagl_func_id *func_id)
 {
-    if (t->ptr >= (t->batch_data + t->batch_size)) {
+    if (t->ptr >= (t->batch_data + YAGL_TRANSPORT_BATCH_HEADER_SIZE + t->batch_size)) {
         return false;
     }