commit | 7cd49f7576b0c61d6c4a2114cda08cc4d5ce0028 | [log] [tgz] |
---|---|---|
author | Sagi Grimberg <sagi@grimberg.me> | Mon Aug 24 15:47:25 2020 -0700 |
committer | Sagi Grimberg <sagi@grimberg.me> | Fri Aug 28 16:43:57 2020 -0700 |
tree | 04328e20c827376ef48ffded91e6938f4cd6f35a | |
parent | 2362acb6785611eda795bfc12e1ea6b202ecf62c [diff] |
nvme: Fix NULL dereference for pci nvme controllers PCIe controllers do not have fabric opts, verify they exist before showing ctrl_loss_tmo or reconnect_delay attributes. Fixes: 764075fdcb2f ("nvme: expose reconnect_delay and ctrl_loss_tmo via sysfs") Reported-by: Tobias Markus <tobias@markus-regensburg.de> Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Sagi Grimberg <sagi@grimberg.me>