[PATCH] gpu: i915: fix a missing check of get_free_page

Chris Wilson chris at chris-wilson.co.uk
Sat Mar 9 09:36:14 UTC 2019


Quoting Kangjie Lu (2019-03-09 04:24:50)
> If the allocation fails, return false to avoid potential
> NULL pointer dereference

No. If we fail to allocate c->tmp, we do uncached reads instead.
-Chris


More information about the dri-devel mailing list