diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-01-19 18:32:50 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-26 13:53:06 -0500 |
commit | 29400cbbae01472ddb103fe6bd8a3a8619f63f80 (patch) | |
tree | f22c48c62f013e4fa1587c4d3851e83435704906 /include/uapi/linux/nvgpu-t18x.h | |
parent | 6343e96f3752ed2a9e3c34b1106abb4bc6d7a3d2 (diff) |
gpu: nvgpu: Free board_obj_ptr in case of error
If construct_clk_prog() gets an error reported in status, it returns
NULL instead of the constructed board_obj_ptr.
Call a destructor to prevent leaking any possibly constructed
board_obj_ptr.
Coverity ID 490171
Change-Id: Icf359da6511b108a03dd86d4556c5cbb288e90de
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1291682
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include/uapi/linux/nvgpu-t18x.h')
0 files changed, 0 insertions, 0 deletions