RDMA/providers: Fix return value when QP type isn't supported

The proper return code is "-EOPNOTSUPP" when the requested QP type is
not supported by the provider.

Link: https://lore.kernel.org/r/20200130082049.463-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Kamal Heib
2020-01-30 10:20:49 +02:00
committed by Jason Gunthorpe
szülő 5e29d1443c
commit bb8865f435
13 fájl változott, egészen pontosan 13 új sor hozzáadva és 13 régi sor törölve

Fájl megtekintése

@@ -561,7 +561,7 @@ static struct ib_qp *mthca_create_qp(struct ib_pd *pd,
}
default:
/* Don't support raw QPs */
return ERR_PTR(-ENOSYS);
return ERR_PTR(-EOPNOTSUPP);
}
if (err) {