[PATCH v2] nvme: fix memleak in nvme_ctrl_dhchap_secret_store()

Christoph Hellwig hch at lst.de
Tue Nov 29 05:40:42 PST 2022


On Tue, Nov 29, 2022 at 09:47:25AM +0100, Christoph Hellwig wrote:
> Thanks,
> 
> applied to nvme-6.1.

And I had to fix it to actually pass all the correct paramters to
kmemdup, so it looks like this code wasn't even compile test.

Btw, how can nvme_ctrl_dhchap_secret_store work without any kind
of locking?



More information about the Linux-nvme mailing list