diff --git a/drivers/gpu/nvgpu/common/fifo/tsg.c b/drivers/gpu/nvgpu/common/fifo/tsg.c index 2c16776dc..5392e3a2b 100644 --- a/drivers/gpu/nvgpu/common/fifo/tsg.c +++ b/drivers/gpu/nvgpu/common/fifo/tsg.c @@ -188,6 +188,11 @@ int nvgpu_tsg_bind_domain(struct nvgpu_tsg *tsg, u64 domain_id) return -ENOENT; } + /* Release the default domain ref that was implicitly taken at open */ + if (tsg->nvs_domain != NULL) { + nvgpu_nvs_domain_put(g, tsg->nvs_domain); + } + tsg->rl_domain = rl_domain; tsg->nvs_domain = nvs_domain;