diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-06-09 20:56:37 +0200 |
---|---|---|
committer | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-06-09 23:23:32 +0200 |
commit | 9e0026d35c56374b53a0b3837e24412bc9a4d8c9 (patch) | |
tree | 361b197771e1669f0414a1047a7db00dcefb354c /nouveau/abi16.c | |
parent | 25e4cb4659c62817aae2ca3b83f2d4f598d6474b (diff) |
nouveau: silence some remaining valgrind warnings
Valgrind can't understand some of the fields passed to ioctls are overwritten
by kernel, so we need to initialize them. Almost all of our ioctl wrappers
already do it and the cost of remaining 3 is very small.
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Diffstat (limited to 'nouveau/abi16.c')
-rw-r--r-- | nouveau/abi16.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nouveau/abi16.c b/nouveau/abi16.c index 69a0a9b3..a67fbc12 100644 --- a/nouveau/abi16.c +++ b/nouveau/abi16.c @@ -31,13 +31,10 @@ int abi16_chan_nv04(struct nouveau_object *obj) { struct nouveau_device *dev = (struct nouveau_device *)obj->parent; - struct drm_nouveau_channel_alloc req; struct nv04_fifo *nv04 = obj->data; + struct drm_nouveau_channel_alloc req = {nv04->vram, nv04->gart}; int ret; - req.fb_ctxdma_handle = nv04->vram; - req.tt_ctxdma_handle = nv04->gart; - ret = drmCommandWriteRead(dev->fd, DRM_NOUVEAU_CHANNEL_ALLOC, &req, sizeof(req)); if (ret) |