lkml.org 
[lkml]   [2023]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [EXT] [PATCH] ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
On Thu, 7 Dec 2023 17:08:15 +0000 Suman Ghosh wrote:
> >+ kfree(tx_ring->tx_buffer);
>
> [Suman] I think we should do tx_ring->tx_buffer = NULL also, to avoid use after free?

It's up to the driver. Some may call that defensive programming.

\
 
 \ /
  Last update: 2023-12-07 18:42    [W:0.058 / U:3.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site