Dave Airlie wrote: > From: Dave Airlie <airl...@redhat.com> > > If we don't need the zone we need to free it. > > Signed-off-by: Dave Airlie <airl...@redhat.com> > --- > drivers/gpu/drm/ttm/ttm_memory.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/drivers/gpu/drm/ttm/ttm_memory.c > b/drivers/gpu/drm/ttm/ttm_memory.c > index 8bfde5f..f5245c0 100644 > --- a/drivers/gpu/drm/ttm/ttm_memory.c > +++ b/drivers/gpu/drm/ttm/ttm_memory.c > @@ -323,8 +323,10 @@ static int ttm_mem_init_dma32_zone(struct ttm_mem_global > *glob, > * No special dma32 zone needed. > */ > > - if (mem <= ((uint64_t) 1ULL << 32)) > + if (mem <= ((uint64_t) 1ULL << 32)) { > + kfree(zone); > return 0; > + } > > /* > * Limit max dma32 memory to 4GB for now >
Acked-By: Thomas Hellstrom <thellst...@vmware.com> /Thomas ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel