commit | e252984c5279dde24fbd6d3efe7fe13dc642e714 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Fri Jun 04 12:39:03 2010 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Mon Aug 02 15:28:59 2010 -0300 |
tree | 71f9dd577ee9744fddf72a6baec80eb79a1a1b10 | |
parent | aac870a8770281c6ad619b538df77840b9513a0b [diff] |
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 <error27@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>