misc: check return values from vlib_buffer_copy(...) 22/26422/2
authorDave Barach <dave@barachs.net>
Wed, 8 Apr 2020 12:14:57 +0000 (08:14 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 8 Apr 2020 16:29:44 +0000 (16:29 +0000)
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 <dave@barachs.net>
Change-Id: Ic25ef58965871ea5d2b40904df9506803f69e47e


No differences found