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

From: Keith Busch
Date: Thu Dec 10 2020 - 10:07:16 EST


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?