[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201210150534.GB3645@redsun51.ssa.fujisawa.hgst.com>
Date: Fri, 11 Dec 2020 00:05:34 +0900
From: Keith Busch <kbusch@...nel.org>
To: Enzo Matsumiya <ematsumiya@...e.de>
Cc: linux-nvme@...ts.infradead.org, Jens Axboe <axboe@...com>,
Christoph Hellwig <hch@....de>,
Sagi Grimberg <sagi@...mberg.me>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nvme: hwmon: fix crash on device teardown
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?
Powered by blists - more mailing lists