Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2018-07-12 09:57:49 +0200
committerHannes Reinecke <hare@suse.de>2018-07-12 09:57:59 +0200
commitf8128dec90a6688e96fed3c1ae39bcdbb5fa8711 (patch)
treea6ac0953752900b6df225d5d7546fb9e0667f997
parent7ade27d7c293f658a700dc334f8774dfa346d85f (diff)
nvme-rdma: correctly check for target keyed sgl support
(bsc#1099041). suse-commit: fb1e5632b0eb29f81ca6cc221b0092a9583f0def
-rw-r--r--drivers/nvme/host/rdma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index 90b57cff72fe..9f550c0110ee 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -1943,8 +1943,9 @@ static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev,
}
/* sanity check keyed sgls */
- if (!(ctrl->ctrl.sgls & (1 << 20))) {
- dev_err(ctrl->ctrl.device, "Mandatory keyed sgls are not support\n");
+ if (!(ctrl->ctrl.sgls & (1 << 2))) {
+ dev_err(ctrl->ctrl.device,
+ "Mandatory keyed sgls are not supported!\n");
ret = -EINVAL;
goto out_remove_admin_queue;
}