Re: [PATCH] nvme-pci: After the memory is released, the corresponding pointer needs to point to empty
From: Christoph Hellwig
Date: Tue Oct 22 2024 - 03:29:27 EST
On Tue, Oct 22, 2024 at 03:01:50AM +0800, Liu Jing wrote:
> The code frees memory pointed to by dev->queues. After freeing memory,
> dev->queues should be set to NULL to avoid dangling Pointers.
How claims that? Clearing pointers clearly defeats redzoning in the
slab allocator so actually is counterproductive.