[PATCH] nvme-core: Fixing ctrl de-referencing in nvme_init_ctrl

Maurizio Lombardi mlombard at redhat.com
Wed Apr 5 03:06:27 PDT 2023


út 4. 4. 2023 v 0:38 odesílatel Sagi Grimberg <sagi at grimberg.me> napsal:
> Not arguing the bug, just want to understand what Fixes tag it needs,
> so that this can go as far as possible to stable kernels.
>

I think the correct one is:
Fixes: d22524a4782a943bb02a9cf68 ("nvme: switch controller refcounting
to use struct device")

It calls device_initialize() but doesn't add nvme_put_ctrl() in the error path.

Maurizio




More information about the Linux-nvme mailing list