diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-04-13 07:31:39 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-14 11:43:16 -0400 |
commit | 64339638013d569e725766cc593a1e0ccb802f7f (patch) | |
tree | 79225427dfcd228f0ddcc7327dadd3dcbecff876 /drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |
parent | f22df728deb90f1c32318dbeaf011389df8ecb59 (diff) |
gpu: nvgpu: clean up ctx_vars properly
Set ctx_vars.valid to false when removing support. Otherwise a
re-poweron sequence could crash when the flag wouldn't match the real
state of the driver.
Also free all allocated regs instead of leaking some of them.
Change-Id: I3fc4fa759d839bc435e53cbd942fa5d39efe7f57
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1126138
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
0 files changed, 0 insertions, 0 deletions