MGS-5176 [#imx-1744] Coveriy - need free the pages if malloc memory failed
authorElla Feng <ella.feng@nxp.com>
Thu, 24 Oct 2019 15:10:15 +0000 (23:10 +0800)
committerXianzhong <xianzhong.li@nxp.com>
Tue, 29 Oct 2019 15:31:21 +0000 (23:31 +0800)
commit47abcf5d5fd4e6d187d63e695982ea9d85fffb92
treeecb968b709a4ecab22f7c381316e5cb3b6d89926
parentd970d420a1157b6af390e8e41ab19ffbdec6499d
MGS-5176 [#imx-1744] Coveriy - need free the pages if malloc memory failed

When alloc NonContiguous1MPages, if malloc fail, need free the pages to avoid memory leak

Signed-off-by: Xianzhong Li <xianzhong.li@nxp.com>
(cherry picked from commit 30b05a615613a7e47db5e98dddb0fae9ca42b924)
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_gfp.c