[PATCH] i2c: Add support for Barco LPT->DVI to i2c-parport
[powerpc.git] / fs / compat.c
index 8186341..55ac032 100644 (file)
@@ -1170,7 +1170,7 @@ static ssize_t compat_do_readv_writev(int type, struct file *file,
        }
 
        ret = rw_verify_area(type, file, pos, tot_len);
-       if (ret)
+       if (ret < 0)
                goto out;
 
        fnv = NULL;