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

Sagi Grimberg sagi at grimberg.me
Wed Nov 30 00:37:45 PST 2022


>> 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?

This is fixed in 6.2 with some of my patches.



More information about the Linux-nvme mailing list