mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-23 18:43:51 +08:00
Fixed returning SoE error code.
This commit is contained in:
@@ -3416,6 +3416,7 @@ int ec_cdev_ioctl_slave_soe_write(
|
||||
wait_event(request.slave->soe_queue,
|
||||
request.req.state != EC_INT_REQUEST_BUSY);
|
||||
|
||||
ioctl.error_code = request.req.error_code;
|
||||
retval = request.req.state == EC_INT_REQUEST_SUCCESS ? 0 : -EIO;
|
||||
|
||||
if (__copy_to_user((void __user *) arg, &ioctl, sizeof(ioctl))) {
|
||||
|
||||
Reference in New Issue
Block a user