diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-30 23:03:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-30 23:03:47 +0000 |
commit | 29d1c579fd4df8ffea91a9d829dafd05760d3499 (patch) | |
tree | 71d4a718d56356dd8c778e432d4f5532fe4f0afc /sys/dev | |
parent | 8c021e9ff3ffef995863c20041dfd8e10b1f087f (diff) |
properly catch cases where buffers are on the kstack, from hannken@eis.cs.tu-bs.de
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/aha.c | 3 | ||||
-rw-r--r-- | sys/dev/isa/aha1542.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c index 1049d677dfe..323bdd5d285 100644 --- a/sys/dev/isa/aha.c +++ b/sys/dev/isa/aha.c @@ -78,8 +78,7 @@ #ifdef i386 #include <machine/vmparam.h> #define VOLATILE_XS(xs) \ - ((xs)->datalen > 0 && \ - ((vm_offset_t)((xs)->data) < VM_MIN_KERNEL_ADDRESS) && \ + ((xs)->datalen > 0 && (xs)->bp == NULL && \ ((xs)->flags & SCSI_POLL) == 0) #else #define VOLATILE_XS(xs) 0 diff --git a/sys/dev/isa/aha1542.c b/sys/dev/isa/aha1542.c index 1049d677dfe..323bdd5d285 100644 --- a/sys/dev/isa/aha1542.c +++ b/sys/dev/isa/aha1542.c @@ -78,8 +78,7 @@ #ifdef i386 #include <machine/vmparam.h> #define VOLATILE_XS(xs) \ - ((xs)->datalen > 0 && \ - ((vm_offset_t)((xs)->data) < VM_MIN_KERNEL_ADDRESS) && \ + ((xs)->datalen > 0 && (xs)->bp == NULL && \ ((xs)->flags & SCSI_POLL) == 0) #else #define VOLATILE_XS(xs) 0 |