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

Emil Velikov emil.l.velikov at gmail.com
Tue Jul 28 06:42:49 PDT 2015


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 !

Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>

-Emil


More information about the dri-devel mailing list