diff options
author | Dan Carpenter | 2010-06-04 12:39:03 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab | 2010-08-02 15:28:59 -0300 |
commit | e252984c5279dde24fbd6d3efe7fe13dc642e714 (patch) | |
tree | 71f9dd577ee9744fddf72a6baec80eb79a1a1b10 /drivers/media/common | |
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>
Diffstat (limited to 'drivers/media/common')
0 files changed, 0 insertions, 0 deletions