aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2023-03-14 15:20:36 +0900
committerChristoph Hellwig <[email protected]>2023-04-13 08:55:03 +0200
commitab76e7206b672b2e8818cb121a04506956d6b223 (patch)
tree90e393742a16a92cd51d84e41c73361d817dc0f5 /drivers/usb/cdns3/cdns3-debug.h
parent1ad11eafc63ac16e667853bee4273879226d2d1b (diff)
nvmet: fix error handling in nvmet_execute_identify_cns_cs_ns()
Nvme specifications state that: If the I/O Command Set associated with the namespace identified by the NSID field does not support the Identify Namespace data structure specified by the CSI field, the controller shall abort the command with a status code of Invalid Field in Command. In other words, if nvmet_execute_identify_cns_cs_ns() is called for a target with a block device that is not zoned, we should not return any data and set the status to NVME_SC_INVALID_FIELD. While at it, it is also better to revalidate the ns block devie *before* checking if the block device is zoned, to ensure that nvmet_execute_identify_cns_cs_ns() operates against updated device characteristics. Fixes: aaf2e048af27 ("nvmet: add ZBD over ZNS backend support") Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Keith Busch <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions