forked from Minki/linux
9dcfbc182f
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.
v2: Incorporate Jordan's comments:
- Simplify the check to share the same error message.
- Use dev_err_once() to avoid an error message every time we open the
drm device fd.
Fixes:
|
||
---|---|---|
.. | ||
a2xx.xml.h | ||
a3xx_gpu.c | ||
a3xx_gpu.h | ||
a3xx.xml.h | ||
a4xx_gpu.c | ||
a4xx_gpu.h | ||
a4xx.xml.h | ||
a5xx_gpu.c | ||
a5xx_gpu.h | ||
a5xx_power.c | ||
a5xx_preempt.c | ||
a5xx.xml.h | ||
adreno_common.xml.h | ||
adreno_device.c | ||
adreno_gpu.c | ||
adreno_gpu.h | ||
adreno_pm4.xml.h |