[PATCH] nvme: hwmon: fix crash on device teardown
Chaitanya Kulkarni
Chaitanya.Kulkarni at wdc.com
Wed Dec 9 23:35:14 EST 2020
Enzo,
On 12/9/20 13:39, Enzo Matsumiya wrote:
> Fix a possible NULL pointer dereference when trying to read
> hwmon sysfs entries associated to NVMe-oF devices that were
> hot-removed or disconnected.
>
> Unregister the NVMe hwmon device upon controller teardown
> (nvme_stop_ctrl()).
>
> Signed-off-by: Enzo Matsumiya <ematsumiya at suse.de>
(Without looking into the code)
Do you have blktests testcases for NVMeOFhot-removed and disconnected
device scenario to produce the problem ?
More information about the Linux-nvme
mailing list