diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/dmabuf.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/dmabuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dmabuf.c b/drivers/gpu/nvgpu/common/linux/dmabuf.c index 6b44ff55..08cf5f2b 100644 --- a/drivers/gpu/nvgpu/common/linux/dmabuf.c +++ b/drivers/gpu/nvgpu/common/linux/dmabuf.c | |||
@@ -41,11 +41,11 @@ static void gk20a_mm_delete_priv(void *_priv) | |||
41 | 41 | ||
42 | g = priv->g; | 42 | g = priv->g; |
43 | 43 | ||
44 | if (priv->comptags.lines) { | 44 | if (priv->comptags.allocated && priv->comptags.lines) { |
45 | BUG_ON(!priv->comptag_allocator); | 45 | BUG_ON(!priv->comptag_allocator); |
46 | gk20a_comptaglines_free(priv->comptag_allocator, | 46 | gk20a_comptaglines_free(priv->comptag_allocator, |
47 | priv->comptags.offset, | 47 | priv->comptags.offset, |
48 | priv->comptags.allocated_lines); | 48 | priv->comptags.lines); |
49 | } | 49 | } |
50 | 50 | ||
51 | /* Free buffer states */ | 51 | /* Free buffer states */ |