drm: Copy back ioctl data to userspace regardless of return code.

Fixes a regression from commit 9d5b3ffc42f7820e8ee07705496955e4c2c38dd9
('drm: fixup some of the ioctl function exit paths'): The vblank ioctl
needs to update the userspace parameters when interrupted by a signal,
which was prevented by the return code check. This could cause the X
server to hang in drmWaitVBlank().

Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

authored by Michel Dänzer and committed by Jesse Barnes 9b6fe313 b6741377

+1 -1
+1 -1
drivers/gpu/drm/drm_drv.c
··· 481 } 482 retcode = func(dev, kdata, file_priv); 483 484 - if ((retcode == 0) && (cmd & IOC_OUT)) { 485 if (copy_to_user((void __user *)arg, kdata, 486 _IOC_SIZE(cmd)) != 0) 487 retcode = -EFAULT;
··· 481 } 482 retcode = func(dev, kdata, file_priv); 483 484 + if (cmd & IOC_OUT) { 485 if (copy_to_user((void __user *)arg, kdata, 486 _IOC_SIZE(cmd)) != 0) 487 retcode = -EFAULT;