nvavp: Add mutex lock for all avp submit
authorSoumen Kumar Dey <sdey@nvidia.com>
Tue, 14 Jun 2016 09:01:57 +0000 (14:01 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Thu, 15 Sep 2016 16:18:03 +0000 (09:18 -0700)
commitff94d4ba6858af3861eb902c5677aed0acfc01fe
tree5aae5886b9e3319f5dd7e8d2e7eb188635e6bdb7
parentcd9b8bf34e7d601896c8c019b956feddf56871d6
nvavp: Add mutex lock for all avp submit

Add mutex lock for nvavp_submit to avoid race condition.

bug 1775299

Change-Id: I11a66a58a1f048d6a0ee5aa949f852bfef56dc07
Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
Reviewed-on: http://git-master/r/1164117
(cherry picked from commit 1faa6a739996fdacff3dbc85ad46235f42ad79c9)
Reviewed-on: http://git-master/r/1214643
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/media/platform/tegra/nvavp/nvavp_dev.c