diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2008-01-19 18:26:19 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2008-01-19 18:26:19 +0000 |
commit | fb50d2e41f6666fbf0f375bfe34d2e288e9b1e15 (patch) | |
tree | bb2df45ca11c0eefb9449e0c45658750c25e2f26 /sys/net/netisr.h | |
parent | 99952fdc78a07ec261884d2e753f1b4336dd7e81 (diff) |
Fix add_net_randomness() not being called because the wrong
bit in netisr is set. 1 != (1 << 1).
Reported by mickey, fix by me.
OK markus@, miod@, claudio@
Diffstat (limited to 'sys/net/netisr.h')
-rw-r--r-- | sys/net/netisr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/netisr.h b/sys/net/netisr.h index 842d62de064..4c56b7e5c17 100644 --- a/sys/net/netisr.h +++ b/sys/net/netisr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netisr.h,v 1.28 2007/09/08 02:45:04 dlg Exp $ */ +/* $OpenBSD: netisr.h,v 1.29 2008/01/19 18:26:18 mpf Exp $ */ /* $NetBSD: netisr.h,v 1.12 1995/08/12 23:59:24 mycroft Exp $ */ /* @@ -83,7 +83,7 @@ void btintr(void); #include <machine/atomic.h> #define schednetisr(anisr) \ do { \ - atomic_setbits_int(&netisr, (1 << (anisr)) | NETISR_RND); \ + atomic_setbits_int(&netisr, (1 << (anisr)) | (1 << NETISR_RND));\ setsoftnet(); \ } while (0) #endif |