Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvidia/drivers: dc: fix return code in tegra_dc_wait_for_vsync
The return code from wait_for_completion_interruptible_timeout() was being returned directly as an error code (to userspace through the FBIO_WAITFORVSYNC ioctl), instead of being translated, so change the logic: * loop while the return code is -ERESTARTSYS due to interruption * 0 return is timeout, so return -ETIME * > 0 is success Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: CTCaer <ctcaer@gmail.com>
- Loading branch information