diff options
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 4a3d58cb..9790af05 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -6629,7 +6629,7 @@ int gr_gk20a_get_ctx_buffer_offsets(struct gk20a *g, | |||
6629 | return -ENODEV; | 6629 | return -ENODEV; |
6630 | 6630 | ||
6631 | priv_registers = kzalloc(sizeof(u32) * potential_offsets, GFP_KERNEL); | 6631 | priv_registers = kzalloc(sizeof(u32) * potential_offsets, GFP_KERNEL); |
6632 | if (IS_ERR_OR_NULL(priv_registers)) { | 6632 | if (!priv_registers) { |
6633 | gk20a_dbg_fn("failed alloc for potential_offsets=%d", potential_offsets); | 6633 | gk20a_dbg_fn("failed alloc for potential_offsets=%d", potential_offsets); |
6634 | err = PTR_ERR(priv_registers); | 6634 | err = PTR_ERR(priv_registers); |
6635 | goto cleanup; | 6635 | goto cleanup; |