]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/gpu/drm/nouveau/nv84_crypt.c
drm/nv84: fix minor issues in PCRYPT implementation
[mv-sheeva.git] / drivers / gpu / drm / nouveau / nv84_crypt.c
index 1cda0240f55d24ee6eafbc8c30c579f1168e4b49..780bb1d66f95f61189ff44892ec5701fab7064ae 100644 (file)
@@ -61,7 +61,7 @@ nv84_crypt_destroy_context(struct nouveau_channel *chan)
        struct drm_device *dev = chan->dev;
        u32 inst;
 
-       if (!chan->ramin)
+       if (!chan->crypt_ctx)
                return;
 
        inst  = (chan->ramin->vinst >> 12);