diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index d96872f3..5f81b441 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -1903,10 +1903,13 @@ static void gk20a_channel_worker_enqueue(struct channel_gk20a *ch) | |||
1903 | 1903 | ||
1904 | /* | 1904 | /* |
1905 | * Ref released when this item gets processed. The caller should hold | 1905 | * Ref released when this item gets processed. The caller should hold |
1906 | * one ref already, so can't fail. | 1906 | * one ref already, so normally shouldn't fail, but the channel could |
1907 | * end up being freed between the time the caller got its reference and | ||
1908 | * the time we end up here (e.g., if the client got killed); if so, just | ||
1909 | * return. | ||
1907 | */ | 1910 | */ |
1908 | if (WARN_ON(!gk20a_channel_get(ch))) { | 1911 | if (!gk20a_channel_get(ch)) { |
1909 | nvgpu_warn(g, "cannot get ch ref for worker!"); | 1912 | nvgpu_info(g, "cannot get ch ref for worker!"); |
1910 | return; | 1913 | return; |
1911 | } | 1914 | } |
1912 | 1915 | ||