diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-09-01 15:28:40 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-09-01 15:28:40 +0000 |
commit | 196ce6daacdecd8acf4029b08ee3a704113a88e6 (patch) | |
tree | 4db11b9f46c32753ab5fcf34e5a90d78a455992f /sys/dev/ccd.c | |
parent | ff9c8580ac8995be530eab4c4a7d414726aa6a95 (diff) |
fix a use after free case.
From Bret Lambert via deraadt@;
ok miod@
Diffstat (limited to 'sys/dev/ccd.c')
-rw-r--r-- | sys/dev/ccd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index 89c0f9d1b20..142f6149a62 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.78 2007/06/20 18:15:46 deraadt Exp $ */ +/* $OpenBSD: ccd.c,v 1.79 2007/09/01 15:28:39 thib Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -953,9 +953,9 @@ ccdiodone(struct buf *vbp) count = vbp->b_bcount; - putccdbuf(cbp); if (cbp->cb_dep) putccdbuf(cbp->cb_dep); + putccdbuf(cbp); /* * If all done, "interrupt". |