]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-tcp: fix error codes in nvme_tcp_setup_ctrl()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 5 Jun 2021 12:48:16 +0000 (15:48 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Jun 2021 03:36:16 +0000 (05:36 +0200)
commit77b98a8e741be51b38893756e31b1eaa0536ae5b
treeeea2327698bc8b2af8b154fd5910ab028d01cd35
parent2f514cf4f026023e7496cfabd125548e5c94ca93
nvme-tcp: fix error codes in nvme_tcp_setup_ctrl()

These error paths currently return success but they should return
-EOPNOTSUPP.

Fixes: 354cc9652e88 ("nvme-tcp: check sgl supported by target")
Fixes: 1fcf4b8ae898 ("nvme-tcp: add NVMe over TCP host driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c