| Fix reading of uninitialized variables by implementing MMCBR_IVAR_TIMING in |
| function a10_mmc_read_ivar. |
| |
| diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/arm/allwinner/a10_mmc.c freebsd-11.1/sys/arm/allwinner/a10_mmc.c |
| --- /usr/src/sys/arm/allwinner/a10_mmc.c 2017-07-21 07:42:04.000000000 +0800 |
| +++ freebsd-11.1/sys/arm/allwinner/a10_mmc.c 2020-01-23 17:25:46.529950355 +0800 |
| @@ -702,6 +702,9 @@ |
| case MMCBR_IVAR_CAPS: |
| *(int *)result = sc->a10_host.caps; |
| break; |
| + case MMCBR_IVAR_TIMING: |
| + *result = sc->a10_host.ios.timing; |
| + break; |
| case MMCBR_IVAR_MAX_DATA: |
| *(int *)result = 65535; |
| break; |