[Intel-gfx] [PATCH 2/3] drm/i915: Check for ips_mchdev being NULL

Niranjan Vishwanathapura niranjana.vishwanathapura at intel.com
Wed Nov 6 02:14:45 UTC 2019


On Wed, Nov 06, 2019 at 12:37:14AM +0000, Chris Wilson wrote:
>Quoting Niranjana Vishwanathapura (2019-11-06 00:02:04)
>> Guard against uninitalized (NULL) ips_mchdev before
>> dereferencing.
>
>Because?

I am seeing some exported functions like i915_read_mch_val() that try to
dereference ips_mchdev via mchdev_get(). I don't know full usage here,
but probably make these APIs fail safe?

Niranjana

>-Chris


More information about the Intel-gfx mailing list