Re: [PATCH] drm/atomic: put commit when -ERESTARTSYS received

2017-08-18 Thread Daniel Vetter
On Thu, Aug 17, 2017 at 10:21:18AM -0400, Jerry Zuo wrote: > During page flip atomic_check and atomic_commit can return > -ERESTARTSYS to restart the ioctl. When this happens we fail to > put the commit object leading to a memory leak. > > v2: Changed subject tag to drm/atomic > > Signed-off-by:

[PATCH] drm/atomic: put commit when -ERESTARTSYS received

2017-08-17 Thread Jerry Zuo
During page flip atomic_check and atomic_commit can return -ERESTARTSYS to restart the ioctl. When this happens we fail to put the commit object leading to a memory leak. v2: Changed subject tag to drm/atomic Signed-off-by: Jerry Zuo --- drivers/gpu/drm/drm_atomic.c | 25 +++