From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6DC583 for ; Tue, 5 Dec 2023 01:21:31 -0800 (PST) X-QQ-mid:Yeas1t1701768050t854t48136 Received: from 3DB253DBDE8942B29385B9DFB0B7E889 (jiawenwu@trustnetic.com [115.204.154.156]) X-QQ-SSF:00400000000000F0FSF000000000000 From: =?utf-8?b?Smlhd2VuIFd1?= X-BIZMAIL-ID: 13344881203513048041 To: "'duanqiangwen'" , , , , , , , , References: <20231205065033.19536-1-duanqiangwen@net-swift.com> In-Reply-To: <20231205065033.19536-1-duanqiangwen@net-swift.com> Subject: RE: [PATCH net] net: libwx: fix memory leak on free page Date: Tue, 5 Dec 2023 17:20:49 +0800 Message-ID: <04f201da275c$566735d0$0335a170$@trustnetic.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: zh-cn Thread-Index: AQJx97aawQypS/CXAFrzFUrGxQZG6q9qx4TA X-QQ-SENDSIZE: 520 Feedback-ID: Yeas:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz5a-1 > @@ -2248,8 +2180,7 @@ static void wx_clean_rx_ring(struct wx_ring *rx_ring) > > /* free resources associated with mapping */ > page_pool_put_full_page(rx_ring->page_pool, rx_buffer->page, false); > - __page_frag_cache_drain(rx_buffer->page, > - rx_buffer->pagecnt_bias); > + No need to add this blank line. Other looks good to me, thanks! Reviewed-by: Jiawen Wu > > i++; > rx_buffer++;