[PATCH] drm/ttm/nouveau: don't call tt destroy callback on alloc failure.

Dave Airlie airlied at gmail.com
Wed Jul 29 00:08:00 UTC 2020


On Tue, 28 Jul 2020 at 17:49, Christian König <christian.koenig at amd.com> wrote:
>
> Am 28.07.20 um 06:17 schrieb Dave Airlie:
> > From: Dave Airlie <airlied at redhat.com>
> >
> > This is confusing, and from my reading of all the drivers only
> > nouveau got this right.
> >
> > Just make the API act under driver control of it's own allocation
> > failing, and don't call destroy, if the page table fails to
> > create there is nothing to cleanup here.
> >
> > (I'm willing to believe I've missed something here, so please
> > review deeply).
> >
> > Signed-off-by: Dave Airlie <airlied at redhat.com>
>
> That looks right to me as well, Reviewed-by: Christian König
> <christian.koenig at amd.com>

Landed this in drm-next as well.

Dave.


More information about the dri-devel mailing list