diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-08-25 05:30:00 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-08-25 05:30:00 +0000 |
commit | ee355114ec6062d00c1376b184b886a39e74fd4e (patch) | |
tree | da9330872894208b121ac18e2abbc801b67f1509 /drivers/scsi/53c7,8xx.c | |
parent | d1003cbd87479d4962fe017c0f913dde9c4d026a (diff) |
Merge with Linux 2.4.0-test6-pre9.
Diffstat (limited to 'drivers/scsi/53c7,8xx.c')
-rw-r--r-- | drivers/scsi/53c7,8xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/53c7,8xx.c b/drivers/scsi/53c7,8xx.c index 7a3e28f7a..547b04c4f 100644 --- a/drivers/scsi/53c7,8xx.c +++ b/drivers/scsi/53c7,8xx.c @@ -5389,9 +5389,10 @@ print_insn (struct Scsi_Host *host, const u32 *insn, * to use vverify()? */ - if (MAP_NR(insn) < 1 || MAP_NR(insn + 8) > MAP_NR(high_memory) || + if (virt_to_phys((void *)insn) < PAGE_SIZE || + virt_to_phys((void *)(insn + 8)) > virt_to_phys(high_memory) || ((((dcmd = (insn[0] >> 24) & 0xff) & DCMD_TYPE_MMI) == DCMD_TYPE_MMI) && - MAP_NR(insn + 12) > MAP_NR(high_memory))) { + virt_to_phys((void *)(insn + 12)) > virt_to_phys(high_memory))) { size = 0; sprintf (buf, "%s%p: address out of range\n", prefix, insn); @@ -6381,8 +6382,7 @@ dump_events (struct Scsi_Host *host, int count) { static int check_address (unsigned long addr, int size) { - return (MAP_NR(addr) < 1 || MAP_NR(addr + size) > MAP_NR(high_memory) ? - -1 : 0); + return (virt_to_phys((void *)addr) < PAGE_SIZE || virt_to_phys((void *)(addr + size)) > virt_to_phys(high_memory) ? -1 : 0); } #ifdef MODULE |