Re: [dpdk-dev] [PATCH] app/testpmd: fix dereference null return valiue

2018-01-31 Thread Thomas Monjalon
22/01/2018 16:45, Jasvinder Singh: > Calloc() function might returns NULL due to insufficient space. Therefore, > check for handling memory allocation failure is added. > > Coverity issue: 257030 > Fixes: 5b590fbe09b6 ("app/testpmd: add traffic management forwarding mode") > > Signed-off-by: Jasv

Re: [dpdk-dev] [PATCH] app/testpmd: fix dereference null return valiue

2018-01-31 Thread Thomas Monjalon
22/01/2018 16:15, Jasvinder Singh: > Malloc() function might return NULL due to insufficient space. Therefore, > check for handling memory allocation failure is added. > > Coverity issue: 257039 > Fixes: e63b50162aa3 ("app/testpmd: clean metering and policing commands") > > Signed-off-by: Jasvind

[dpdk-dev] [PATCH] app/testpmd: fix dereference null return valiue

2018-01-22 Thread Jasvinder Singh
Calloc() function might returns NULL due to insufficient space. Therefore, check for handling memory allocation failure is added. Coverity issue: 257030 Fixes: 5b590fbe09b6 ("app/testpmd: add traffic management forwarding mode") Signed-off-by: Jasvinder Singh --- app/test-pmd/tm.c | 4 1 f

[dpdk-dev] [PATCH] app/testpmd: fix dereference null return valiue

2018-01-22 Thread Jasvinder Singh
Malloc() function might return NULL due to insufficient space. Therefore, check for handling memory allocation failure is added. Coverity issue: 257039 Fixes: e63b50162aa3 ("app/testpmd: clean metering and policing commands") Signed-off-by: Jasvinder Singh --- app/test-pmd/cmdline_mtr.c | 6 +++