diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-08-10 04:10:26 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-10 05:28:08 +1000 |
commit | 120b0c39c75688864e4a25e71cf3ed40e8e18651 (patch) | |
tree | e4b92228177cf74ef73c75493aa314cc4594e111 /drivers/gpu/drm/nouveau/core/engine/disp/nv50.c | |
parent | d55b4af909bc16f7982c2b8b8656f0898158627b (diff) | |
download | op-kernel-dev-120b0c39c75688864e4a25e71cf3ed40e8e18651.zip op-kernel-dev-120b0c39c75688864e4a25e71cf3ed40e8e18651.tar.gz |
drm/nv50-/disp: audit and version SOR_HDA_ELD method
The full object interfaces are about to be exposed to userspace, so we
need to check for any security-related issues and version the structs
to make it easier to handle any changes we may need in the future.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/engine/disp/nv50.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/engine/disp/nv50.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/nv50.c b/drivers/gpu/drm/nouveau/core/engine/disp/nv50.c index 869789f..9381b16 100644 --- a/drivers/gpu/drm/nouveau/core/engine/disp/nv50.c +++ b/drivers/gpu/drm/nouveau/core/engine/disp/nv50.c @@ -905,6 +905,10 @@ nv50_disp_base_mthd(struct nouveau_object *object, u32 mthd, return priv->dac.sense(object, priv, data, size, head, outp); case NV50_DISP_MTHD_V1_SOR_PWR: return priv->sor.power(object, priv, data, size, head, outp); + case NV50_DISP_MTHD_V1_SOR_HDA_ELD: + if (!priv->sor.hda_eld) + return -ENODEV; + return priv->sor.hda_eld(object, priv, data, size, head, outp); default: break; } |