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)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 8 Aug 2016 11:20:05 +0000 (04:20 -0700)
commit1faa6a739996fdacff3dbc85ad46235f42ad79c9
treea2f8fce24530d9d02bee6db2efe3d882891af074
parentf459ed2deaae4a55d60138b36f1f1fc77211cee9
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>
(cherry picked from commit fe20d48bb7fc453166806a2efe4e3905d12414fd)
Reviewed-on: http://git-master/r/1164117
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/media/platform/tegra/nvavp/nvavp_dev.c