[PATCH] nvme: hwmon: fix crash on device teardown

Keith Busch kbusch at kernel.org
Thu Dec 10 10:05:34 EST 2020


On Wed, Dec 09, 2020 at 06:32:27PM -0300, Enzo Matsumiya wrote:
> +void nvme_hwmon_exit(struct nvme_ctrl *ctrl)
> +{
> +	hwmon_device_unregister(ctrl->dev);
> +}

The hwmon registration uses the devm_ version, so don't we need to use
the devm_hwmon_device_unregister() here?



More information about the Linux-nvme mailing list