MGS-2902 [#imx-557] fix wrong release_mem_region
authorXianzhong <xianzhong.li@nxp.com>
Mon, 15 May 2017 09:14:39 +0000 (17:14 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:19 +0000 (15:22 -0500)
the dma allocated memory do not call additional request_mem_region,
but gckGALDEVICE_Destroy call into release_mem_region mistakenly.

this fix the following warning message with rmmod galcore:
Trying to free nonexistent resource <000000003cc00000-0000000044bfffff>

Date: May 15, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c

index f192e22..6ab753f 100644 (file)
@@ -833,6 +833,7 @@ _SetupVidMem(
 
                     if (gcmIS_SUCCESS(status))
                     {
+                        device->contiguousRequested = gcvTRUE;
                         device->requestedContiguousBase = physAddr;
                         break;
                     }