nvme-hwmon: consistently ignore errors from nvme_hwmon_init
stable inclusion from stable-v5.10.152 commit 770b7e3a2c1f32e82c5c9143d0a3670e9ea95a5f category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I73HJ0 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=770b7e3a2c1f32e82c5c9143d0a3670e9ea95a5f -------------------------------- [ Upstream commit 6b8cf940 ] An NVMe controller works perfectly fine even when the hwmon initialization fails. Stop returning errors that do not come from a controller reset from nvme_hwmon_init to handle this case consistently. Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Guenter Roeck <linux@roeck-us.net> Reviewed-by:
Serge Semin <fancer.lancer@gmail.com> Stable-dep-of: c94b7f9b ("nvme-hwmon: kmalloc the NVME SMART log buffer") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Lipeng Sang <sanglipeng1@jd.com>
Loading
Please sign in to comment