From: Lars-Peter Clausen Date: Thu, 14 Nov 2013 22:32:16 +0000 (-0800) Subject: kfifo: kfifo_copy_{to,from}_user: fix copied bytes calculation X-Git-Tag: v3.13-rc1~84^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a019e48cfbfb358786326db3dbc1c565b8f14a56;p=pandora-kernel.git 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 Cc: Stefani Seibold Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed