diff options
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_prog.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_prog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_prog.c b/drivers/gpu/nvgpu/clk/clk_prog.c index e5c2a295..9d44d6d4 100644 --- a/drivers/gpu/nvgpu/clk/clk_prog.c +++ b/drivers/gpu/nvgpu/clk/clk_prog.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -628,6 +628,8 @@ static int clk_prog_construct_1x_master(struct gk20a *g, | |||
628 | 628 | ||
629 | pclkprog->p_vf_entries = (struct ctrl_clk_clk_prog_1x_master_vf_entry *) | 629 | pclkprog->p_vf_entries = (struct ctrl_clk_clk_prog_1x_master_vf_entry *) |
630 | nvgpu_kzalloc(g, vfsize); | 630 | nvgpu_kzalloc(g, vfsize); |
631 | if (!pclkprog->p_vf_entries) | ||
632 | return -ENOMEM; | ||
631 | 633 | ||
632 | memcpy(pclkprog->p_vf_entries, ptmpprog->p_vf_entries, vfsize); | 634 | memcpy(pclkprog->p_vf_entries, ptmpprog->p_vf_entries, vfsize); |
633 | 635 | ||