[EMAIL PROTECTED] wrote:

> + * @limit: the first invalid value

If this is the case, ...

> + *
> + * Like val + len > limit, except with overflow checking.
> + */
> +static inline bool val_outside(unsigned long val, unsigned long len,
> +                            unsigned long limit)
> +
> +{
> +     return val + len > limit || val + len < val;

... then shouldn't that be "val + len >= limit"?

David
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to