Commit d6a2b953 authored by Keith Busch's avatar Keith Busch Committed by Christoph Hellwig
Browse files

nvme: Free ctrl device name on init failure

Free the kobject name that was allocated for the controller device on
failure rather than its parent.

Fixes: d22524a4

 ("nvme: switch controller refcounting to use struct device")
Signed-off-by: default avatarKeith Busch <>
Signed-off-by: default avatarChristoph Hellwig <>
parent 14b04063
......@@ -3585,7 +3585,7 @@ int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
return 0;
ida_simple_remove(&nvme_instance_ida, ctrl->instance);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment