diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-06-17 09:39:18 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-06-17 14:35:09 +1000 |
commit | 34710903288b4d997f01a520967d0c84fd993277 (patch) | |
tree | 65b2087201682804ac2cf4e330433f948d3572cd /nvkm/engine | |
parent | 0d8c80ab70c509a13542e0858bd74e8b3bc23516 (diff) | |
download | nouveau-34710903288b4d997f01a520967d0c84fd993277.tar.gz |
disp/nv50: fix a potential oops in supervisor handling
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm/engine')
-rw-r--r-- | nvkm/engine/disp/nv50.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvkm/engine/disp/nv50.c b/nvkm/engine/disp/nv50.c index 1e85f36c7..26e962b7e 100644 --- a/nvkm/engine/disp/nv50.c +++ b/nvkm/engine/disp/nv50.c @@ -1270,7 +1270,7 @@ exec_clkcmp(struct nv50_disp_priv *priv, int head, int id, u32 pclk, u32 *conf) i--; outp = exec_lookup(priv, head, i, ctrl, &data, &ver, &hdr, &cnt, &len, &info1); - if (!data) + if (!outp) return NULL; if (outp->info.location == 0) { |