diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2017-05-11 03:47:58 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2017-05-11 03:47:58 +0000 |
commit | f9e7a80482e43d1f59161ed9be8973f09211d08c (patch) | |
tree | 6e0e504cc6a56e6f1a5746534c0c8be2116551ac | |
parent | 675cad71e76b959b01d1926739b632e3eae9182b (diff) | |
download | src-f9e7a80482e43d1f59161ed9be8973f09211d08c.tar.gz src-f9e7a80482e43d1f59161ed9be8973f09211d08c.zip |
Fix uma_zcreate() align argument, now that the constraint is asserted.
The alignment argument is the mask of low bits to mask off when allocating
items in a zone, not the block-size alignment.
Notes
Notes:
svn path=/head/; revision=318171
-rw-r--r-- | sys/dev/dpaa/if_dtsec_rm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dpaa/if_dtsec_rm.c b/sys/dev/dpaa/if_dtsec_rm.c index 66c20e3175ae..57d17d2cc7f4 100644 --- a/sys/dev/dpaa/if_dtsec_rm.c +++ b/sys/dev/dpaa/if_dtsec_rm.c @@ -115,7 +115,7 @@ dtsec_rm_fi_pool_init(struct dtsec_softc *sc) sc->sc_fi_zone = uma_zcreate(sc->sc_fi_zname, sizeof(struct dtsec_rm_frame_info), NULL, NULL, NULL, NULL, - sizeof(void *), 0); + sizeof(void *) - 1, 0); if (sc->sc_fi_zone == NULL) return (EIO); @@ -312,7 +312,7 @@ dtsec_rm_pool_rx_init(struct dtsec_softc *sc) device_get_nameunit(sc->sc_dev)); sc->sc_rx_zone = uma_zcreate(sc->sc_rx_zname, FM_PORT_BUFFER_SIZE, NULL, - NULL, NULL, NULL, FM_PORT_BUFFER_SIZE, 0); + NULL, NULL, NULL, FM_PORT_BUFFER_SIZE - 1, 0); if (sc->sc_rx_zone == NULL) return (EIO); |