aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mmc
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2020-02-28 21:31:40 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2020-02-28 21:31:40 +0000
commitd5151ea87af3ea7e15ef6866e0c8ebd96e467980 (patch)
tree4e61be3012d9651b8d419418194724c0432dbe19 /sys/dev/mmc
parent4ec9d1370f88c0c805d0dd953f6b2716005741b9 (diff)
Notes
Diffstat (limited to 'sys/dev/mmc')
-rw-r--r--sys/dev/mmc/host/dwmmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mmc/host/dwmmc.c b/sys/dev/mmc/host/dwmmc.c
index 674c0d441b40..c39ced20a660 100644
--- a/sys/dev/mmc/host/dwmmc.c
+++ b/sys/dev/mmc/host/dwmmc.c
@@ -1278,7 +1278,7 @@ dwmmc_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
*(int *)result = sc->host.caps;
break;
case MMCBR_IVAR_MAX_DATA:
- *(int *)result = sc->desc_count;
+ *(int *)result = sc->desc_count - 1;
break;
case MMCBR_IVAR_TIMING:
*(int *)result = sc->host.ios.timing;