diff options
| author | Lars-Peter Clausen <[email protected]> | 2013-11-14 14:32:16 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-11-15 09:32:23 +0900 |
| commit | a019e48cfbfb358786326db3dbc1c565b8f14a56 (patch) | |
| tree | ecb17f9f9dde58a8da4b340129efabdece82dcc0 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
| parent | 07968fe4acec6d49e39520ef407ea7f6874b7c2e (diff) | |
kfifo: kfifo_copy_{to,from}_user: fix copied bytes calculation
'copied' and 'len' are in bytes, while 'ret' is in elements, so we need to
multiply 'ret' with the size of one element to get the correct result.
Signed-off-by: Lars-Peter Clausen <[email protected]>
Cc: Stefani Seibold <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions