[PATCH] drm/i915/gvt/scheduler: fix potential NULL pointer dereference

Chris Wilson chris at chris-wilson.co.uk
Mon Mar 19 20:38:26 UTC 2018


Quoting Gustavo A. R. Silva (2018-03-19 19:30:53)
> _workload_ is being dereferenced before it is null checked, hence
> there is a potential null pointer dereference.
> 
> Fix this by moving the pointer dereference after _workload_ has
> been null checked.

The checks are misleading and not required.
-Chris


More information about the dri-devel mailing list