Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme: catch errors from nvme_configure_metadata()
[ Upstream commit cd9aed6 ] nvme_configure_metadata() is issuing I/O, so we might incur an I/O error which will cause the connection to be reset. But in that case any further probing will race with reset and cause UAF errors. So return a status from nvme_configure_metadata() and abort probing if there was an I/O error. Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information