video: tegra: host: fix memory leaks with firmware
authorDeepak Nibade <dnibade@nvidia.com>
Wed, 26 Mar 2014 13:23:14 +0000 (18:23 +0530)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Thu, 27 Mar 2014 12:41:09 +0000 (05:41 -0700)
commitd7cac8dd9a5d3f6cb44348a9698d0a6aefa80737
tree14b2f8b6dc758ee3b72fd027cee93a89b6790739
parent8c30c88d4fb1aad61eacc52b53722c9abebbddda
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
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/gk20a/gr_gk20a.c