[PATCH] nvme-pci: After the memory is released, the corresponding pointer needs to point to empty

Christoph Hellwig hch at lst.de
Tue Oct 22 00:29:13 PDT 2024


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.




More information about the Linux-nvme mailing list