diff options
author | Mauro Sardara <msardara@cisco.com> | 2020-12-10 01:15:59 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2020-12-10 00:21:22 +0000 |
commit | 86173b2d4624dfe7a563fcf86a0f0c5695cd1d2a (patch) | |
tree | 7d8d9685bc4763be11da2852a9ced7e1dab0a818 | |
parent | 514b0ba878d93626e9b6a94441c4fac428c47914 (diff) |
[HICN-658] Return error if buffer allocation fails in memif connector.
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I5b0d40a8f5f713109f492609bf1c9dcede189b68
-rw-r--r-- | libtransport/src/core/memif_connector.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libtransport/src/core/memif_connector.cc b/libtransport/src/core/memif_connector.cc index 553aab42a..49e1cf027 100644 --- a/libtransport/src/core/memif_connector.cc +++ b/libtransport/src/core/memif_connector.cc @@ -267,6 +267,7 @@ int MemifConnector::bufferAlloc(long n, uint16_t qid) { if (TRANSPORT_EXPECT_FALSE(err != MEMIF_ERR_SUCCESS)) { TRANSPORT_LOGE("memif_buffer_alloc: %s", memif_strerror(err)); + return -1; } c->tx_buf_num += r; |