diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-11-04 12:42:37 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 12:40:49 +0100 |
commit | b521cf34bb6b4d38d66176f7cd7337846ac27342 (patch) | |
tree | 61132a28e82f084ef5f148b6edf4394edd2ebff9 /drivers/mmc | |
parent | 8be78c6ad4d38ae555065b2778205d310300c8b0 (diff) | |
download | op-kernel-dev-b521cf34bb6b4d38d66176f7cd7337846ac27342.zip op-kernel-dev-b521cf34bb6b4d38d66176f7cd7337846ac27342.tar.gz |
mmc: sdhci: Fix ADMA table size warning
The intent of the warning is to warn if the ADMA table
overflows. However there can be one more 'end' entry
so the condition should be adjusted accordingly.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index e759357..4436f77 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -555,7 +555,7 @@ static int sdhci_adma_table_pre(struct sdhci_host *host, * If this triggers then we have a calculation bug * somewhere. :/ */ - WARN_ON((desc - host->adma_desc) > ADMA_SIZE); + WARN_ON((desc - host->adma_desc) >= ADMA_SIZE); } if (host->quirks & SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC) { |