Fixed SDO upload via library.
authorFlorian Pose <fp@igh-essen.com>
Tue, 24 Feb 2009 10:16:24 +0000
changeset 1362 2d6e0b01c80a
parent 1361 9c16b62326fa
child 1363 11c0b2caa253
Fixed SDO upload via library.
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;
 }