Re: [dpdk-dev] [PATCH] vhost: check malloc return value when allocating guest pages

2017-05-21 Thread Yuanhan Liu
On Thu, May 18, 2017 at 10:14:26AM +0200, Maxime Coquelin wrote: > > > On 05/11/2017 05:25 PM, Jens Freimann wrote: > >When we try to allocate guest pages we need to check the return value of > >malloc(). Print an error message and return when it fails. > > > >Signed-off-by: Jens Freimann > >---

Re: [dpdk-dev] [PATCH] vhost: check malloc return value when allocating guest pages

2017-05-18 Thread Maxime Coquelin
On 05/11/2017 05:25 PM, Jens Freimann wrote: When we try to allocate guest pages we need to check the return value of malloc(). Print an error message and return when it fails. Signed-off-by: Jens Freimann --- lib/librte_vhost/vhost_user.c | 7 +++ 1 file changed, 7 insertions(+) diff

[dpdk-dev] [PATCH] vhost: check malloc return value when allocating guest pages

2017-05-11 Thread Jens Freimann
When we try to allocate guest pages we need to check the return value of malloc(). Print an error message and return when it fails. Signed-off-by: Jens Freimann --- lib/librte_vhost/vhost_user.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte