diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2020-02-28 21:31:40 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2020-02-28 21:31:40 +0000 |
| commit | d5151ea87af3ea7e15ef6866e0c8ebd96e467980 (patch) | |
| tree | 4e61be3012d9651b8d419418194724c0432dbe19 /sys/dev/mmc | |
| parent | 4ec9d1370f88c0c805d0dd953f6b2716005741b9 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mmc')
| -rw-r--r-- | sys/dev/mmc/host/dwmmc.c | 2 |
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; |
