diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2017-07-26 21:59:37 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2017-07-26 21:59:37 +0000 |
| commit | 7a777659ffcb2ec332f0bc786baf66ee4b33a7cc (patch) | |
| tree | c24dbbfba25dbcd2220ecc25d1c12cb925de16fe /sys/dev/mmc | |
| parent | 1edbb54fe91743a8c340831c04438736a319c786 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mmc')
| -rw-r--r-- | sys/dev/mmc/mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c index 69a449dea583..2efbb24e4e06 100644 --- a/sys/dev/mmc/mmc.c +++ b/sys/dev/mmc/mmc.c @@ -1892,7 +1892,7 @@ child_common: if (child != NULL) { device_set_ivars(child, ivar); sc->child_list = realloc(sc->child_list, - sizeof(device_t *) * sc->child_count + 1, + sizeof(device_t) * sc->child_count + 1, M_DEVBUF, M_WAITOK); sc->child_list[sc->child_count++] = child; } else @@ -1934,7 +1934,7 @@ mmc_update_child_list(struct mmc_softc *sc) if (i != j) sc->child_list[i] = child; } - sc->child_list = realloc(sc->child_list, sizeof(device_t *) * + sc->child_list = realloc(sc->child_list, sizeof(device_t) * sc->child_count, M_DEVBUF, M_WAITOK); } |
