Thread (5 messages) 5 messages, 3 authors, 9d ago

Re: [PATCH net] net/stmmac: Set Rx queue page_pool to NULL when freeing DMA resources

From: Jakub Raczynski <hidden>
Date: 2026-07-02 10:17:52
Also in: lkml

On Thu, Jul 02, 2026 at 11:24:41AM +0200, Maxime Chevallier wrote:
quoted
 
 	kfree(rx_q->buf_pool);
-	if (rx_q->page_pool)
+	if (rx_q->page_pool) {
 		page_pool_destroy(rx_q->page_pool);
+		rx_q->page_pool = NULL;
+	}
page_pool_destroy can be passed NULL, as you're fixing this I think you might as well
drop the if(rx_q->page_pool) at the same time :) I agree with the change otherwise.

with that changed,

Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>

Maxime
Agreed, will send V2 soon.

BR
Jakub Raczynski 

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help