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)
commit522af60cb2f8e3658bda1902fb7f200dcf888a5c
treeeea2327698bc8b2af8b154fd5910ab028d01cd35
parente7d4b5493a2d5a6225fc572e01167e12f89c6a42
nvme-tcp: fix error codes in nvme_tcp_setup_ctrl()

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

Fixes: 73ffcefcfca0 ("nvme-tcp: check sgl supported by target")
Fixes: 3f2304f8c6d6 ("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