[PATCH] drm/ttm: Fix a regression causing kernel oops'es

Zack Rusin zackr at vmware.com
Thu Jan 12 12:11:33 UTC 2023


On Thu, 2023-01-12 at 08:01 +0100, Christian König wrote:
> !! External Email
> 
> Am 11.01.23 um 18:50 schrieb Zack Rusin:
> > From: Zack Rusin <zackr at vmware.com>
> > 
> > The branch is explicitly taken if ttm == NULL which means that to avoid
> > a null pointer reference the ttm object can not be used inside. Switch
> > back to dst_mem to avoid kernel oops'es.
> > 
> > This fixes kernel oops'es with any buffer objects which don't have ttm_tt,
> > e.g. with vram based screen objects on vmwgfx.
> > 
> > Signed-off-by: Zack Rusin <zackr at vmware.com>
> > Fixes: e3c92eb4a84f ("drm/ttm: rework on ttm_resource to use size_t type")
> > Cc: Somalapuram Amaranath <Amaranath.Somalapuram at amd.com>
> > Cc: Christian König <christian.koenig at amd.com>
> 
> Reviewed-by: Christian König <christian.koenig at amd.com>
> 
> Should I push it to drm-misc-fixes?

If you're not too busy that'd be great. Otherwise I can do it tomorrow.

z


More information about the dri-devel mailing list