vlib: fixed the issue of vpp crash caused by interface up/down
When the interface status changes, the api of vnet_hw_interface_set_flags_helper calls the event processing function (vlib_process_signal_event_helper) for event processing. When the opinter data_vec is NULL, the _ven_len operation of an illegal address will cause vpp crash. Type:fix Signed-off-by: fangtong <fangtong2007@163.com> Change-Id: I7106b2aed7a1fc17f74bf6cb513912af97584f45
This commit is contained in:
@@ -848,7 +848,7 @@ vlib_process_signal_event_helper (vlib_node_main_t * nm,
|
||||
if (!data_vec && vec_len (nm->recycled_event_data_vectors))
|
||||
{
|
||||
data_vec = vec_pop (nm->recycled_event_data_vectors);
|
||||
_vec_len (data_vec) = 0;
|
||||
vec_reset_length (data_vec);
|
||||
}
|
||||
|
||||
l = vec_len (data_vec);
|
||||
|
||||
Reference in New Issue
Block a user