svn commit: r262851 - stable/9/sys/dev/mps
Alexander Motin
mav at FreeBSD.org
Thu Mar 6 13:25:22 UTC 2014
Author: mav
Date: Thu Mar 6 13:25:21 2014
New Revision: 262851
URL: http://svnweb.freebsd.org/changeset/base/262851
Log:
MFC r262553:
Pass proper pointer to bus_dmamem_free() in mps_iocfacts_free().
Passing there pointer into the middle of allocated area caused kernel
panic during reinit, for example, after firmware upgrade.
Modified:
stable/9/sys/dev/mps/mps.c
Directory Properties:
stable/9/ (props changed)
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/mps/mps.c
==============================================================================
--- stable/9/sys/dev/mps/mps.c Thu Mar 6 13:24:51 2014 (r262850)
+++ stable/9/sys/dev/mps/mps.c Thu Mar 6 13:25:21 2014 (r262851)
@@ -614,8 +614,8 @@ mps_iocfacts_free(struct mps_softc *sc)
if (sc->post_busaddr != 0)
bus_dmamap_unload(sc->queues_dmat, sc->queues_map);
- if (sc->post_queue != NULL)
- bus_dmamem_free(sc->queues_dmat, sc->post_queue,
+ if (sc->free_queue != NULL)
+ bus_dmamem_free(sc->queues_dmat, sc->free_queue,
sc->queues_map);
if (sc->queues_dmat != NULL)
bus_dma_tag_destroy(sc->queues_dmat);
More information about the svn-src-stable-9
mailing list