diff options
author | Miklos Szeredi <[email protected]> | 2010-11-30 16:39:27 +0100 |
---|---|---|
committer | Miklos Szeredi <[email protected]> | 2010-11-30 16:39:27 +0100 |
commit | d9d318d39dd5cb686660504a3565aac453709ccc (patch) | |
tree | ff818170ca69976ad2cfaa77ed788e645c4d80c9 /net/unix/sysctl_net_unix.c | |
parent | e8a7e48bb248a1196484d3f8afa53bded2b24e71 (diff) |
fuse: fix ioctl when server is 32bit
If a 32bit CUSE server is run on 64bit this results in EIO being
returned to the caller.
The reason is that FUSE_IOCTL_RETRY reply was defined to use 'struct
iovec', which is different on 32bit and 64bit archs.
Work around this by looking at the size of the reply to determine
which struct was used. This is only needed if CONFIG_COMPAT is
defined.
A more permanent fix for the interface will be to use the same struct
on both 32bit and 64bit.
Reported-by: "ccmail111" <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
CC: Tejun Heo <[email protected]>
CC: <[email protected]> [2.6.31+]
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions