diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_arb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c index 2dee209e..550c77e0 100644 --- a/drivers/gpu/nvgpu/clk/clk_arb.c +++ b/drivers/gpu/nvgpu/clk/clk_arb.c | |||
@@ -477,9 +477,10 @@ static int nvgpu_clk_arb_install_fd(struct gk20a *g, | |||
477 | 477 | ||
478 | status = nvgpu_clk_notification_queue_alloc(&dev->queue, | 478 | status = nvgpu_clk_notification_queue_alloc(&dev->queue, |
479 | DEFAULT_EVENT_NUMBER); | 479 | DEFAULT_EVENT_NUMBER); |
480 | if (status < 0) | 480 | if (status < 0) { |
481 | return status; | 481 | err = status; |
482 | 482 | goto fail; | |
483 | } | ||
483 | 484 | ||
484 | fd = get_unused_fd_flags(O_RDWR); | 485 | fd = get_unused_fd_flags(O_RDWR); |
485 | if (fd < 0) { | 486 | if (fd < 0) { |