diff options
author | Chuansheng Liu <[email protected]> | 2014-03-04 15:34:57 +0800 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2014-03-07 10:03:25 -0600 |
commit | cfe919b53b807ab32e89e1c662c6d242948449bd (patch) | |
tree | dee085b60f958e3ca72ce924ce2a46ac246a82a5 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 8bebbe8dc6145303db05964fb09657aac2a7e909 (diff) |
usb: gadget: return the right length in ffs_epfile_io()
When the request length is aligned to maxpacketsize, sometimes
the return length ret > the user space requested len.
At that time, we will use min_t(size_t, ret, len) to limit the
size in case of user data buffer overflow.
But we need return the min_t(size_t, ret, len) to tell the user
space rightly also.
[ [email protected]: also fix comment's indentation ]
Acked-by: Michal Nazarewicz <[email protected]>
Reviewed-by: David Cohen <[email protected]>
Signed-off-by: Chuansheng Liu <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions