diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-09-27 10:15:17 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-09-27 10:15:17 +1000 |
commit | bf219b7ca2d7678e2d8a4024f0bd9290fb0734ce (patch) | |
tree | d7dd6a1e2c55427061b84852b66eb8e334e3b669 /drivers/iio/dac | |
parent | 46c66f7fafa1b589c5a54d1924109194a3278a64 (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>
Diffstat (limited to 'drivers/iio/dac')
0 files changed, 0 insertions, 0 deletions