From: Dan Carpenter Date: Fri, 4 Jun 2010 10:34:40 +0000 (-0300) Subject: V4L/DVB: media/radio: fix copy_to_user to user handling X-Git-Tag: v2.6.36-rc1~582^2~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aac870a8770281c6ad619b538df77840b9513a0b;p=pandora-kernel.git V4L/DVB: media/radio: fix copy_to_user to user handling copy_to/from_user() returns the number of bytes remaining to be copied but the code here was testing for negative returns. I modified it to return -EFAULT. These functions are called from si4713_s_ext_ctrls() and that only tests for negative error codes. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed