Re: [PATCH] net/af_xdp: fix integer handling issues

2023-02-21 Thread Ferruh Yigit
On 2/21/2023 11:14 AM, Shibin Koikkara Reeny wrote: > Fix integer handling issues (NEGATIVE_RETURNS) reported > in coverity scan. Add a check to sock variable if the > value is negative return -1. > > Coverity issue: 383245 > Fixes: 7fc6ae50369d ("net/af_xdp: support CNI Integration") > > Signed-

[PATCH] net/af_xdp: fix integer handling issues

2023-02-21 Thread Shibin Koikkara Reeny
Fix integer handling issues (NEGATIVE_RETURNS) reported in coverity scan. Add a check to sock variable if the value is negative return -1. Coverity issue: 383245 Fixes: 7fc6ae50369d ("net/af_xdp: support CNI Integration") Signed-off-by: Shibin Koikkara Reeny --- drivers/net/af_xdp/rte_eth_af_xd