dpdk: check result of rte_mempool_create_empty 04/20204/6
authorLijian.Zhang <[email protected]>
Wed, 3 Apr 2019 08:32:30 +0000 (16:32 +0800)
committerDamjan Marion <[email protected]>
Tue, 18 Jun 2019 10:11:02 +0000 (10:11 +0000)
commita8c0b62a88494e9a8562c57dfd3fd75818a629a7
treef15ff6a61b40ee893d504237e0a7c003e39853bd
parent376efe5df22dcb381fd687a0986f85035c38bed5
dpdk: check result of rte_mempool_create_empty

Check the returned pointer, report error and return in case of failure.
This avoids crashing without any useful clues or debug messages.

Type: fix

Change-Id: I15d0735a531c2d9a8b6f67b7d6fe326b98c963c3
Signed-off-by: Lijian Zhang <[email protected]>
Reviewed-by: Honnappa Nagarahalli <[email protected]>
src/plugins/dpdk/buffer.c