Re: [dpdk-dev] [PATCH 1/1] net/cxgbe: check return value of malloc

2017-03-27 Thread Rahul Lakkireddy
On Saturday, March 03/25/17, 2017 at 18:14:29 +0530, caihe wrote: >Hi rahul, > >There is a bug without check the return value of alloc memory in function >t4_wr_mbox_meat_timeout, if we should fix it as below: > >diff --git a/drivers/net/cxgbe/base/t4_hw.c >b/drivers/net/cxgbe

[dpdk-dev] [PATCH 1/1] net/cxgbe: check return value of malloc

2017-03-25 Thread caihe
Hi rahul, There is a bug without check the return value of alloc memory in function t4_wr_mbox_meat_timeout, if we should fix it as below: diff --git a/drivers/net/cxgbe/base/t4_hw.c b/drivers/net/cxgbe/base/t4_hw.c index c089b06..7402a5f 100644 --- a/drivers/net/cxgbe/base/t4_hw.c +++ b/drivers