]> err.no Git - linux-2.6/blobdiff - drivers/ieee1394/ohci1394.h
Pull cpu-hotplug into release branch
[linux-2.6] / drivers / ieee1394 / ohci1394.h
index d1758d409610b3906823fb186a8a1325c70fd1dd..7df0962144e344bd1c4108bb6ed4f71210ea668a 100644 (file)
@@ -219,8 +219,8 @@ struct ti_ohci {
 
        int self_id_errors;
 
-       /* Tasklets for iso receive and transmit, used by video1394,
-        * amdtp and dv1394 */
+       /* Tasklets for iso receive and transmit, used by video1394
+        * and dv1394 */
 
        struct list_head iso_tasklet_list;
        spinlock_t iso_tasklet_list_lock;
@@ -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;