video: tegra: host: fix memory leaks with firmware
authorDeepak Nibade <dnibade@nvidia.com>
Wed, 26 Mar 2014 13:23:14 +0000 (18:23 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 9 May 2014 22:12:10 +0000 (15:12 -0700)
commitec5ca0e56e4bc69e48b88f8716a7e9f7f7e1e147
treec8c34d02f45b6bf732c2cd0df87fc80a6eb47d10
parent68a6540236420b6346ca331d88b9cee70031971c
video: tegra: host: fix memory leaks with firmware

Pointer variables to store fecs and gpccs firmwares are local
variables.
Once firmwares are copied to local buffer, we can release
them with release_firmware() call before returning from function.

Release fecs and gpccs firmwares after copying to
fix memroy leak

Bug 1484645

Change-Id: I118874d65e30b6966f83d35347132d8f764bab8d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/387139
(cherry picked from commit d7cac8dd9a5d3f6cb44348a9698d0a6aefa80737)
Reviewed-on: http://git-master/r/407188
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Tested-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/video/tegra/host/gk20a/gr_gk20a.c