summaryrefslogtreecommitdiffstats
path: root/mm/memory-failure.c
diff options
context:
space:
mode:
authorLars-Peter Clausen2013-11-14 23:32:16 +0100
committerLinus Torvalds2013-11-15 01:32:23 +0100
commita019e48cfbfb358786326db3dbc1c565b8f14a56 (patch)
treeecb17f9f9dde58a8da4b340129efabdece82dcc0 /mm/memory-failure.c
parentsound/core/memalloc.c: use gen_pool_dma_alloc() to allocate iram buffer (diff)
downloadkernel-qcow2-linux-a019e48cfbfb358786326db3dbc1c565b8f14a56.tar.gz
kernel-qcow2-linux-a019e48cfbfb358786326db3dbc1c565b8f14a56.tar.xz
kernel-qcow2-linux-a019e48cfbfb358786326db3dbc1c565b8f14a56.zip
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 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions