[PATCH] drm: Detect no-op drmModeAtomicRequest and return early

Chris Wilson chris at chris-wilson.co.uk
Tue Jul 28 10:10:09 PDT 2015


On Tue, Jul 28, 2015 at 02:42:49PM +0100, Emil Velikov wrote:
> On 21 July 2015 at 13:50, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > If the number of items to process in the request is zero, we can forgo
> > duplicating, sorting the request and feeding it into the kernel and
> > instead report success immediately.  This prevents a NULL dereference of
> > the sorted->items for the no-op request.
> >
> Why do you attempt a null/empty commit :P But seriously, nicely caught !

Nah, it was a silly static analysis tool that one time told the truth.

Pushed,
	293f8fa..1a6efaf  1a6efaf68e207302cd9423051b8091fa663bbabe -> master
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the dri-devel mailing list