Re: [PATCH v2] nvme-pci: fix dbbuf_sq_db point to freed memory

From: Christoph Hellwig
Date: Fri Jan 04 2019 - 13:07:16 EST

On Fri, Dec 21, 2018 at 01:07:25AM +0000, Lulina (A) wrote:
> The case is that nvme device support NVME_CTRL_OACS_DBBUF_SUPP, and
> return failed when the driver sent nvme_admin_dbbuf. The nvmeq->dbbuf_sq_db
> point to freed memory, as nvme_dbbuf_set is called after nvme_dbbuf_init.

But we never use those pointers in that state, do we? Can you explain
the problem in a little more detail?