mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "usb: gadget: f_fs: set req->num_sgs as 0 for non-sg transfer"
This commit is contained in:
commit
0d7ca7e8c4
1 changed files with 2 additions and 0 deletions
|
|
@ -1147,6 +1147,7 @@ static ssize_t ffs_epfile_io(struct file *file, struct ffs_io_data *io_data)
|
|||
req->num_sgs = io_data->sgt.nents;
|
||||
} else {
|
||||
req->buf = data;
|
||||
req->num_sgs = 0;
|
||||
}
|
||||
req->length = data_len;
|
||||
|
||||
|
|
@ -1195,6 +1196,7 @@ static ssize_t ffs_epfile_io(struct file *file, struct ffs_io_data *io_data)
|
|||
req->num_sgs = io_data->sgt.nents;
|
||||
} else {
|
||||
req->buf = data;
|
||||
req->num_sgs = 0;
|
||||
}
|
||||
req->length = data_len;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue