diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index def916b3..54a288cd 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -71,7 +71,10 @@ int gk20a_fence_wait(struct gk20a_fence *f, int timeout) | |||
71 | 71 | ||
72 | bool gk20a_fence_is_expired(struct gk20a_fence *f) | 72 | bool gk20a_fence_is_expired(struct gk20a_fence *f) |
73 | { | 73 | { |
74 | return f->ops->is_expired(f); | 74 | if (f && f->ops) |
75 | return f->ops->is_expired(f); | ||
76 | else | ||
77 | return true; | ||
75 | } | 78 | } |
76 | 79 | ||
77 | int gk20a_fence_install_fd(struct gk20a_fence *f) | 80 | int gk20a_fence_install_fd(struct gk20a_fence *f) |