drm/i915: set dummy page for stolen objects
authorImre Deak <imre.deak@intel.com>
Fri, 22 Mar 2013 21:10:44 +0000 (23:10 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 23 Mar 2013 11:15:58 +0000 (12:15 +0100)
This is needed since currently sg_for_each_page assumes that we have
a valid page in each sg item. It is only a real problem for
CONFIG_SPARSEMEM where the page is dereferenced, in other cases the
iterator works ok with an invalid page pointer.

We can remove this workaround when we have fixed sg_page_iter to work on
scatterlists without backing pages.

Signed-off-by: Imre Deak <imre.deak@intel.com>

No differences found