diff options
author | Hannes Reinecke <hare@suse.de> | 2023-11-14 16:27:01 +0300 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2023-11-20 20:25:32 +0300 |
commit | cd9aed606088d36a7ffff3e808db4e76b1854285 (patch) | |
tree | c3bb19d3bf9292ebe2990d9fb274de53154a9ce2 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 23441536b63677cb2ed9b1637d8ca70315e44bd0 (diff) | |
download | linux-cd9aed606088d36a7ffff3e808db4e76b1854285.tar.xz |
nvme: catch errors from nvme_configure_metadata()
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 <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions