video: tegra: host: fix memory leak in ctx save
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Tue, 17 Jul 2012 10:33:21 +0000 (15:33 +0530)
committerSimone Willett <swillett@nvidia.com>
Tue, 24 Jul 2012 18:42:08 +0000 (11:42 -0700)
commit519b5100bc17b177c2ba7f33c250646a5dacfee3
tree6ba46f83fcc6388c05ea5c11eaee64efcc12191c
parent7e2377b9f79b5f8bc4b519444dc5e6441b2d8671
video: tegra: host: fix memory leak in ctx save

- host1x_save_context() explicitly updated the ref count on context
- with the re-factoring of nvhost_job code, nvhost_job_alloc()
takes a ref count on context
- this caused the explicit ref count in host1x_save_context()
redundant and lead to memory leak. hence remove it

Bug 1015924

Change-Id: Id18c74412e8659b60288700972690d1b895de4c1
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/116409
(cherry picked from commit c98d0cfbbdacdda8e540b5d9e0d513e279b3b2f5)
Reviewed-on: http://git-master/r/117326
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/video/tegra/host/host1x/host1x_channel.c