Re: [dpdk-dev] [PATCH] net/mrvl: reset errno before library call

2017-11-02 Thread Ferruh Yigit
On 11/2/2017 1:37 AM, Tomasz Duszynski wrote: > In case errno contains some non-zero value and call to strtoul() is > successful -2 error will be returned. > > Setting errno to zero before calling strtoul() makes sure > errors will be handled correctly. > > Fixes: 0ddc9b815b11 ("net/mrvl: add net

[dpdk-dev] [PATCH] net/mrvl: reset errno before library call

2017-11-02 Thread Tomasz Duszynski
In case errno contains some non-zero value and call to strtoul() is successful -2 error will be returned. Setting errno to zero before calling strtoul() makes sure errors will be handled correctly. Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") Signed-off-by: Tomasz Duszynski --- drive