From 6991afbb97baba23bc595732913012daeffca3df Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 30 Nov 1995 23:03:46 +0000 Subject: [PATCH] properly catch cases where buffers are on the kstack, from hannken@eis.cs.tu-bs.de --- sys/dev/isa/aha.c | 3 +-- 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 #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 #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 -- 2.20.1