]> err.no Git - linux-2.6/blobdiff - drivers/ieee1394/ohci1394.h
[PATCH] remove verify_area(): remove verify_area() from various uaccess.h headers
[linux-2.6] / drivers / ieee1394 / ohci1394.h
index d1758d409610b3906823fb186a8a1325c70fd1dd..cc66c1cae250c1cb105599810637e1ff77ba58bb 100644 (file)
@@ -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;