Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme-pci: fix CMB sysfs file removal in reset path
Currently we create the sysfs entry even if we fail mapping it. In that case, the unmapping will not remove the sysfs created file. There is no good reason to create a sysfs entry for a non working CMB and show his characteristics. Fixes: f63572d ("nvme: unmap CMB and remove sysfs file in reset path") Signed-off-by: Max Gurtovoy <[email protected]> Reviewed-by: Stephen Bates <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
- Loading branch information