From: Dave Barach Date: Wed, 8 Apr 2020 12:14:57 +0000 (-0400) Subject: misc: check return values from vlib_buffer_copy(...) X-Git-Tag: v20.09-rc0~245 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=954c707972bf7efcd227e26d9679544813a78115;hp=954c707972bf7efcd227e26d9679544813a78115;p=vpp.git misc: check return values from vlib_buffer_copy(...) vlib_buffer_copy(...) returns NULL if the system is temporarily out of buffers. This is NOT correct. Please don't be this person: c0 = vlib_buffer_copy (vm, p0); ci0 = vlib_get_buffer_index (vm, c0); Type: fix Signed-off-by: Dave Barach Change-Id: Ic25ef58965871ea5d2b40904df9506803f69e47e ---