nouveau: init nvc0 channel alloc req structure fully
authorBen Skeggs <bskeggs@redhat.com>
Mon, 16 Apr 2012 22:35:43 +0000 (08:35 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Apr 2012 22:35:43 +0000 (08:35 +1000)
Kernel rejects ~0 handles, even though they're not used on NVC0.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nouveau/abi16.c

index 688a9ac6c6e8c821fb86a724ee29079a8d66b1a1..0fa575ce354eee53e20bdd8976983bc04cc42e1d 100644 (file)
@@ -55,7 +55,7 @@ int
 abi16_chan_nvc0(struct nouveau_object *obj)
 {
        struct nouveau_device *dev = (struct nouveau_device *)obj->parent;
-       struct drm_nouveau_channel_alloc req;
+       struct drm_nouveau_channel_alloc req = {};
        struct nvc0_fifo *nvc0 = obj->data;
        int ret;