Skip to content
Commit 2351f431 authored by Josef Bacik's avatar Josef Bacik Committed by David Sterba
Browse files

btrfs: fix send ioctl on 32bit with 64bit kernel



We pass in a pointer in our send arg struct, this means the struct size
doesn't match with 32bit user space and 64bit kernel space.  Fix this by
adding a compat mode and doing the appropriate conversion.

Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ move structure to the beginning, next to receive 32bit compat ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2b902dfc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment