From: deraadt Date: Thu, 30 Nov 1995 23:03:46 +0000 (+0000) Subject: properly catch cases where buffers are on the kstack, from hannken@eis.cs.tu-bs.de X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6991afbb97baba23bc595732913012daeffca3df;p=openbsd properly catch cases where buffers are on the kstack, from hannken@eis.cs.tu-bs.de --- 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