From cb90b9b0813a22ce3b87d379d9c9fd7260a5028e Mon Sep 17 00:00:00 2001 From: Yaniv Gardi Date: Sun, 23 Aug 2015 16:19:28 +0300 Subject: [PATCH] scsi: ufs-qcom: fix check of select_major instead of select_minor This change fixes a bug where we check the select_minor value instead of checking the select_major value. Change-Id: I852944215a0be484449b578be09b46095fb01931 Signed-off-by: Yaniv Gardi --- drivers/scsi/ufs/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 03e975edd25d..56e365a2c535 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -2139,7 +2139,7 @@ static bool ufs_qcom_testbus_cfg_is_ok(struct ufs_qcom_host *host) * mappings of select_minor, since there is no harm in * configuring a non-existent select_minor */ - if (host->testbus.select_major > 0x1F) { + if (host->testbus.select_minor > 0x1F) { dev_err(host->hba->dev, "%s: 0x%05X is not a legal testbus option\n", __func__, host->testbus.select_minor);