diff options
author | 2005-11-27 04:26:14 +0000 | |
---|---|---|
committer | 2005-11-27 04:26:14 +0000 | |
commit | cdc449d55b31c2d937c2bc80d5b985a8596ad62b (patch) | |
tree | 722fed56e9470b5c90f2dffac3cc5743c04b628b /sys | |
parent | truly permit auth/enc/comp expressions to be in any order (diff) | |
download | wireguard-openbsd-cdc449d55b31c2d937c2bc80d5b985a8596ad62b.tar.xz wireguard-openbsd-cdc449d55b31c2d937c2bc80d5b985a8596ad62b.zip |
Fix ami_freemem() by initializing segp before using it.
ok marco@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ami.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index 907fa8c0632..9384670dfcc 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.98 2005/11/26 05:49:47 marco Exp $ */ +/* $OpenBSD: ami.c,v 1.99 2005/11/27 04:26:14 krw Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -279,7 +279,7 @@ void ami_freemem(caddr_t p, bus_dma_tag_t dmat, bus_dmamap_t *map, size_t isize, size_t nent, const char *iname) { - bus_dma_segment_t segp; + bus_dma_segment_t segp = (*map)->dm_segs[0]; size_t total = isize * nent; bus_dmamap_unload(dmat, *map); |