Reviewed-by: Chunming Zhou <[email protected]> > -----Original Message----- > From: Eric Anholt <[email protected]> > Sent: Tuesday, November 06, 2018 7:01 AM > To: [email protected] > Cc: [email protected]; Eric Anholt <[email protected]>; Zhou, > David(ChunMing) <[email protected]>; Koenig, Christian > <[email protected]> > Subject: [PATCH] drm/syncobj: Fix oops on > drm_syncobj_find_fence(file_priv, 0, ...). > > This broke rendering on V3D, where we almost always have a 0 in-syncobj. > > Signed-off-by: Eric Anholt <[email protected]> > Fixes: 48197bc564c7 ("drm: add syncobj timeline support v9") > Cc: Chunming Zhou <[email protected]> > Cc: Christian König <[email protected]> > --- > drivers/gpu/drm/drm_syncobj.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_syncobj.c > b/drivers/gpu/drm/drm_syncobj.c index 4dca5f7e8c4b..da8175d9c6ff 100644 > --- a/drivers/gpu/drm/drm_syncobj.c > +++ b/drivers/gpu/drm/drm_syncobj.c > @@ -443,7 +443,8 @@ int drm_syncobj_find_fence(struct drm_file > *file_private, > int ret; > > ret = drm_syncobj_search_fence(syncobj, point, flags, fence); > - drm_syncobj_put(syncobj); > + if (syncobj) > + drm_syncobj_put(syncobj); > return ret; > } > EXPORT_SYMBOL(drm_syncobj_find_fence); > -- > 2.19.1
_______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
