Re: [PATCH] drm/msm: Fix NULL deref in adreno_load_gpu

2017-12-19 Thread Archit Taneja
On 12/15/2017 09:03 PM, Jordan Crouse wrote: On Thu, Dec 14, 2017 at 11:11:50AM +0530, Archit Taneja wrote: The msm/kms driver should work even if there is no GPU device specified in DT. Currently, we get a NULL dereference crash in adreno_load_gpu since the driver assumes that priv->gpu_pdev

Re: [PATCH] drm/msm: Fix NULL deref in adreno_load_gpu

2017-12-15 Thread Jordan Crouse
On Thu, Dec 14, 2017 at 11:11:50AM +0530, Archit Taneja wrote: > The msm/kms driver should work even if there is no GPU device specified > in DT. Currently, we get a NULL dereference crash in adreno_load_gpu > since the driver assumes that priv->gpu_pdev is non-NULL. > > Perform an additional chec

[PATCH] drm/msm: Fix NULL deref in adreno_load_gpu

2017-12-13 Thread Archit Taneja
The msm/kms driver should work even if there is no GPU device specified in DT. Currently, we get a NULL dereference crash in adreno_load_gpu since the driver assumes that priv->gpu_pdev is non-NULL. Perform an additional check on priv->gpu_pdev before trying to retrieve the msm_gpu pointer from it