summaryrefslogtreecommitdiff
path: root/drivers/pci/ats.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-11-14 22:32:16 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-15 00:32:23 (GMT)
commita019e48cfbfb358786326db3dbc1c565b8f14a56 (patch)
treeecb17f9f9dde58a8da4b340129efabdece82dcc0 /drivers/pci/ats.c
parent07968fe4acec6d49e39520ef407ea7f6874b7c2e (diff)
downloadlinux-fsl-qoriq-a019e48cfbfb358786326db3dbc1c565b8f14a56.tar.xz
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 'drivers/pci/ats.c')
0 files changed, 0 insertions, 0 deletions