ChangeSet 1.1119.3.8, 2003/09/05 15:47:25-07:00, greg@kroah.com [PATCH] USB: fix copy_to_user call in mdc800 driver drivers/usb/mdc800.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -Nru a/drivers/usb/mdc800.c b/drivers/usb/mdc800.c --- a/drivers/usb/mdc800.c Fri Sep 5 17:10:44 2003 +++ b/drivers/usb/mdc800.c Fri Sep 5 17:10:44 2003 @@ -726,7 +726,8 @@ else { /* memcpy Bytes */ - copy_to_user(ptr, &mdc800->out [mdc800->out_ptr], sts); + if (copy_to_user(ptr, &mdc800->out [mdc800->out_ptr], sts)) + return -EFAULT; ptr+=sts; left-=sts; mdc800->out_ptr+=sts;