mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
usb: ftp: fix the bug of ftp ioctrl args problem with 32bit userspace on 64bit platforms
Signed-off-by: Aiyoujun <ayj@rock-chips.com>
This commit is contained in:
@@ -38,12 +38,22 @@ struct mtp_file_range {
|
||||
uint32_t transaction_id;
|
||||
};
|
||||
|
||||
/* support of 32bit userspace on 64bit platforms */
|
||||
#ifdef CONFIG_COMPAT
|
||||
struct mtp_event {
|
||||
/* size of the event */
|
||||
int32_t length;
|
||||
/* event data to send */
|
||||
compat_uptr_t data;
|
||||
};
|
||||
#else
|
||||
struct mtp_event {
|
||||
/* size of the event */
|
||||
size_t length;
|
||||
/* event data to send */
|
||||
void *data;
|
||||
};
|
||||
#endif
|
||||
|
||||
/* Sends the specified file range to the host */
|
||||
#define MTP_SEND_FILE _IOW('M', 0, struct mtp_file_range)
|
||||
|
||||
Reference in New Issue
Block a user