summaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/ohci1394.h
diff options
context:
space:
mode:
author <jgarzik@pretzel.yyz.us>2005-06-04 06:40:40 +0200
committerJeff Garzik <jgarzik@pobox.com>2005-06-04 06:40:40 +0200
commitae20ea8525a80a863f70d332cf47b71bd9f54c1f (patch)
tree9d3cedeb65db521a8436b545bd91641549a18d24 /drivers/ieee1394/ohci1394.h
parent[libata sata_promise] pdc20619 (PATA) support (diff)
parent[PATCH] prom_find_machine_type typo breaks pSeries lpar boot (diff)
downloadlinux-ae20ea8525a80a863f70d332cf47b71bd9f54c1f.tar.xz
linux-ae20ea8525a80a863f70d332cf47b71bd9f54c1f.zip
Automatic merge of /spare/repo/linux-2.6/.git branch HEAD
Diffstat (limited to 'drivers/ieee1394/ohci1394.h')
-rw-r--r--drivers/ieee1394/ohci1394.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ieee1394/ohci1394.h b/drivers/ieee1394/ohci1394.h
index d1758d409610..cc66c1cae250 100644
--- a/drivers/ieee1394/ohci1394.h
+++ b/drivers/ieee1394/ohci1394.h
@@ -236,6 +236,9 @@ struct ti_ohci {
static inline int cross_bound(unsigned long addr, unsigned int size)
{
+ if (size == 0)
+ return 0;
+
if (size > PAGE_SIZE)
return 1;