From: Dan Carpenter Date: Fri, 4 Jun 2010 15:39:03 +0000 (-0300) Subject: V4L/DVB: dvb_ca_en50221: return -EFAULT on copy_to_user errors X-Git-Tag: v2.6.36-rc1~582^2~108 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e252984c5279dde24fbd6d3efe7fe13dc642e714;p=pandora-kernel.git V4L/DVB: dvb_ca_en50221: return -EFAULT on copy_to_user errors copy_to_user() returns the number of bytes remaining to be copied which isn't the right thing to return here. The comments say that these functions in dvb_ca_en50221.c should return the number of bytes copied or an error return. I've changed it to return -EFAULT. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed