Re: is avoiding compat ioctls possible?

From: David Miller
Date: Tue Oct 27 2009 - 23:38:23 EST


From: Dave Airlie <airlied@xxxxxxxxx>
Date: Wed, 28 Oct 2009 13:05:08 +1000

> DrNick on irc suggested just doing:
> if (is_compat_task()) ptr &= 0x00000000FFFFFFFF;
>
> Is there a one liner I can just do in the actual ioctls instead of
> adding 20 compat
> ones?

Just do the right thing and pass all userland compat pointers
through the correct compat_*() macros.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/