diff options
| author | Pyun YongHyeon <yongari@FreeBSD.org> | 2009-02-09 04:02:53 +0000 |
|---|---|---|
| committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2009-02-09 04:02:53 +0000 |
| commit | b913e6653d20efd26f7d39deff0dc76c42d5cb5c (patch) | |
| tree | b918f8130f63014069f817845a281b214be554a7 | |
| parent | 7c11bde1a93ab95d06dd95654aaf9936af227bed (diff) | |
Notes
| -rw-r--r-- | sys/dev/fxp/if_fxp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 9a6851c9c227..ca1a6141ae3f 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -2545,7 +2545,8 @@ fxp_new_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) return (error); } - bus_dmamap_unload(sc->fxp_mtag, rxp->rx_map); + if (rxp->rx_mbuf != NULL) + bus_dmamap_unload(sc->fxp_mtag, rxp->rx_map); tmp_map = sc->spare_map; sc->spare_map = rxp->rx_map; rxp->rx_map = tmp_map; |
