aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-11-14 14:32:16 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:27 +0200
commit6119338a612b8303db89f46721dee61bca99bb98 (patch)
tree6ef5febf59117c70dd72ca71f2450b608a4ae799 /include/linux
parentf082042d4757472aae65f2ef6f133156f761ea46 (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 <lars@metafoo.de> Cc: Stefani Seibold <stefani@seibold.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions