master/cdev.c
changeset 1839 7f36c38e2518
parent 1837 32136215c1fa
child 1851 a56bd34e20a1
equal deleted inserted replaced
1838:1fca55f14b06 1839:7f36c38e2518
  3414 
  3414 
  3415     // wait until master FSM has finished processing
  3415     // wait until master FSM has finished processing
  3416     wait_event(request.slave->soe_queue,
  3416     wait_event(request.slave->soe_queue,
  3417             request.req.state != EC_INT_REQUEST_BUSY);
  3417             request.req.state != EC_INT_REQUEST_BUSY);
  3418 
  3418 
       
  3419     ioctl.error_code = request.req.error_code;
  3419     retval = request.req.state == EC_INT_REQUEST_SUCCESS ? 0 : -EIO;
  3420     retval = request.req.state == EC_INT_REQUEST_SUCCESS ? 0 : -EIO;
  3420 
  3421 
  3421     if (__copy_to_user((void __user *) arg, &ioctl, sizeof(ioctl))) {
  3422     if (__copy_to_user((void __user *) arg, &ioctl, sizeof(ioctl))) {
  3422         retval = -EFAULT;
  3423         retval = -EFAULT;
  3423     }
  3424     }