Re: [PATCH] drm/self_refresh: Fix possible NULL deref in failure path

2019-06-20 Thread Sean Paul
On Thu, Jun 20, 2019 at 01:28:55PM +0200, Daniel Vetter wrote: > On Wed, Jun 19, 2019 at 02:19:47PM -0400, Sean Paul wrote: > > From: Sean Paul > > > > If state allocation fails, we still try to give back the reference on > > it. Also initialize ret in case the crtc is not enabled and we hit the

Re: [PATCH] drm/self_refresh: Fix possible NULL deref in failure path

2019-06-20 Thread Daniel Vetter
On Wed, Jun 19, 2019 at 02:19:47PM -0400, Sean Paul wrote: > From: Sean Paul > > If state allocation fails, we still try to give back the reference on > it. Also initialize ret in case the crtc is not enabled and we hit the > eject button. > > Fixes: 1452c25b0e60 ("drm: Add helpers to kick off s