summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2016-04-13 07:31:39 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-14 11:43:16 -0400
commit64339638013d569e725766cc593a1e0ccb802f7f (patch)
tree79225427dfcd228f0ddcc7327dadd3dcbecff876 /drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
parentf22df728deb90f1c32318dbeaf011389df8ecb59 (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/vgpu/fifo_vgpu.c')
0 files changed, 0 insertions, 0 deletions