Fix a bug in function pipe_rx 43/14243/3
authorLijian Zhang <Lijian.Zhang@arm.com>
Mon, 13 Aug 2018 08:34:21 +0000 (16:34 +0800)
committerDamjan Marion <dmarion@me.com>
Fri, 17 Aug 2018 19:41:12 +0000 (19:41 +0000)
GCC 7 found this issue with a compiling warning,
and this bug has been confirmed by module owner.

Change-Id: If29e857b3a87f91f08674aee6993b075fcff87e7
Signed-off-by: Lijian Zhang <Lijian.Zhang@arm.com>
src/vnet/devices/pipe/pipe.c

index aea766a..9d38886 100644 (file)
@@ -390,7 +390,7 @@ pipe_rx (vlib_main_t * vm,
 
          vlib_validate_buffer_enqueue_x2 (vm, node, next_index,
                                           to_next, n_left_to_next,
-                                          bi0, bi1, next0, next0);
+                                          bi0, bi1, next0, next1);
        }
       while (n_left_from > 0 && n_left_to_next > 0)
        {