Re: [PATCH] net/nfp: fix memory leak for receive function

2022-10-05 Thread Ferruh Yigit
On 9/22/2022 2:09 PM, Niklas Söderlund wrote: From: Long Wu nfp_net_recv_pkts() should not return a value that less than 0 and the inappropriate return value in receive loop also causes the memory leak. Modify code to avoid return a value less than 0. Furthermore, When nfp_net_recv_pkts() break

[PATCH] net/nfp: fix memory leak for receive function

2022-09-22 Thread Niklas Söderlund
From: Long Wu nfp_net_recv_pkts() should not return a value that less than 0 and the inappropriate return value in receive loop also causes the memory leak. Modify code to avoid return a value less than 0. Furthermore, When nfp_net_recv_pkts() break out from the receive loop because of packet pro