MGS-4652 [#imx-1379] fix coverity dereference issue
authorXianzhong <xianzhong.li@nxp.com>
Fri, 29 Mar 2019 02:10:56 +0000 (10:10 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:31 +0000 (11:35 +0300)
commit9dfd2cc720dd27eca2c443e541b165b2c979fd16
treeb4dd3a195355fecf05c630a6c45548c3ec47bb31
parent896e029847fd8f46131de928c1bb536602be2249
MGS-4652 [#imx-1379] fix coverity dereference issue

CID: 5781508
device pointer should not be used before null check

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 17942905375a282ed9896c3cc778a246c321f5f0)
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit 1156f9c81028d59c35835d0311dea19f2e6e52b1)
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c