W dniu 20 kwietnia 2011 19:38 użytkownik John Calixto
<[email protected]> napisał:
> Hi Michal,
>
> On Wed, 20 Apr 2011, Michał Mirosław wrote:
>>
>> So... again... What's the problem with anonymous union of pointer and u64?
>>
>
> As Arnd pointed out, this would not work for big endian machines.

There's no endianness dependency in the example I wrote. All fields in
a union start at the same address, so compat_ioctl will always take
u32 from the beginning of the space reserved, and 32-bit pointer set
by userspace will also be at the beginning.

Best Regards,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to