[PATCH] Fix force feedback uploading for 32-bit apps on 64-bit kernel

From: drAke <hidden>
Date: 2008-03-27 21:29:28

Hello,

Force feedback upload of effects through the event device (ioctl
EVIOCSFF) is not working in 32 bit apps like wine on a 64-bit kernel. 64
bit apps like fftest work.

This is due to the fact that struct ff_effect contains a pointer,
resulting in the structure having different sizes in 64 and 32 bit
programs. This means that the ioctl issued from 32 bit code isn't
handled, because it has a different number.

Attached patch (against 2.6.24.3) fixes this. Tested on x86_64.

Is this ok or are there some alignment issues, which forbid this simple
zero-copy solution?

PS. Please keep me in the CC list, as I'm not subscribing this list.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help