]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix NULL derefence in nvme_ctrl_fast_io_fail_tmo_show/store
authorGopal Tiwari <gtiwari@redhat.com>
Wed, 14 Apr 2021 08:46:45 +0000 (14:16 +0530)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Apr 2021 06:12:56 +0000 (08:12 +0200)
commit4837632d92b2fc2466a3e15e30b6191ec2ed452a
tree906f915778d6faa537133a5877af207bf5b74518
parentedff5b2213b2bbd31f2a9e9ff9b396f3682b2803
nvme: fix NULL derefence in nvme_ctrl_fast_io_fail_tmo_show/store

Adding entry for dev_attr_fast_io_fail_tmo to avoid the kernel crash
while reading and writing the fast_io_fail_tmo.

Fixes: 97175682ee9d (nvme: export fast_io_fail_tmo to sysfs)
Signed-off-by: Gopal Tiwari <gtiwari@redhat.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c