diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/firmware.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/firmware.c b/drivers/gpu/nvgpu/common/linux/firmware.c index a76165ff..9a4dc653 100644 --- a/drivers/gpu/nvgpu/common/linux/firmware.c +++ b/drivers/gpu/nvgpu/common/linux/firmware.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2018, 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, |
@@ -109,6 +109,9 @@ err: | |||
109 | 109 | ||
110 | void nvgpu_release_firmware(struct gk20a *g, struct nvgpu_firmware *fw) | 110 | void nvgpu_release_firmware(struct gk20a *g, struct nvgpu_firmware *fw) |
111 | { | 111 | { |
112 | if(!fw) | ||
113 | return; | ||
114 | |||
112 | nvgpu_kfree(g, fw->data); | 115 | nvgpu_kfree(g, fw->data); |
113 | nvgpu_kfree(g, fw); | 116 | nvgpu_kfree(g, fw); |
114 | } | 117 | } |