# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1235470584 0
# Node ID 2d6e0b01c80a79c5b0e240afd793b4e09eb97885
# Parent  9c16b62326faee875ebb023f332b7c738c2792a2
Fixed SDO upload via library.

diff -r 9c16b62326fa -r 2d6e0b01c80a master/cdev.c
--- a/master/cdev.c	Tue Feb 24 10:03:53 2009 +0000
+++ b/master/cdev.c	Tue Feb 24 10:16:24 2009 +0000
@@ -2348,7 +2348,10 @@
 
     up(&master->master_sem);
 
-    ecrt_sdo_request_timeout(req, data.timeout);
+    if (copy_to_user((void __user *) data.data, ecrt_sdo_request_data(req),
+                ecrt_sdo_request_data_size(req)))
+        return -EFAULT;
+
     return 0;
 }