summaryrefslogtreecommitdiffstats
path: root/sys/dev/flash.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-05-04 22:47:27 +0000
committerderaadt <deraadt@openbsd.org>2017-05-04 22:47:27 +0000
commitd40269aff7aa0cf551de8ebbb8ea6dc0e8a786c9 (patch)
treed360dad83b7ddd423dca45f3cd22614addad5503 /sys/dev/flash.c
parentAdd IPsec test for manually configured SA bundles. That does ipcomp, (diff)
downloadwireguard-openbsd-d40269aff7aa0cf551de8ebbb8ea6dc0e8a786c9.tar.xz
wireguard-openbsd-d40269aff7aa0cf551de8ebbb8ea6dc0e8a786c9.zip
Also pass the blk offset to disk_unbusy(), so that it can pass it to
the random subsystem as entropy. This value is pretty much unknown, and anyways our entropy input ring does not saturate from knowns. ok mikeb djm
Diffstat (limited to 'sys/dev/flash.c')
-rw-r--r--sys/dev/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/flash.c b/sys/dev/flash.c
index c391fb83b47..e0069a5c130 100644
--- a/sys/dev/flash.c
+++ b/sys/dev/flash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flash.c,v 1.31 2015/08/12 22:37:32 krw Exp $ */
+/* $OpenBSD: flash.c,v 1.32 2017/05/04 22:47:27 deraadt Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org>
@@ -931,7 +931,7 @@ flashdone(void *v)
/* Instrumentation. */
disk_unbusy(&sc->sc_dk, bp->b_bcount - bp->b_resid,
- (bp->b_flags & B_READ) != 0);
+ bp->b_blkno, (bp->b_flags & B_READ) != 0);
if (bp->b_error != 0)
bp->b_flags |= B_ERROR;