diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2017-12-07 11:08:52 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-12-19 10:16:37 +1000 |
commit | 81a24b9ae8eea95b74337c253059da761043ed06 (patch) | |
tree | 9abaf3dea87f1b1b664c2ebc249e8c711a5c3370 | |
parent | f60707a69a225f2dd87f42628b44e24ceb219d28 (diff) | |
download | linux-81a24b9ae8eea95b74337c253059da761043ed06.tar.gz linux-81a24b9ae8eea95b74337c253059da761043ed06.tar.bz2 linux-81a24b9ae8eea95b74337c253059da761043ed06.zip |
drm/nouveau/imem/nv50: fix refcount_t warning
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c index 1ba7289684aa..db48a1daca0c 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c @@ -249,7 +249,7 @@ nv50_instobj_acquire(struct nvkm_memory *memory) iobj->base.memory.ptrs = &nv50_instobj_fast; else iobj->base.memory.ptrs = &nv50_instobj_slow; - refcount_inc(&iobj->maps); + refcount_set(&iobj->maps, 1); } mutex_unlock(&imem->subdev.mutex); |