nvavp: Add missing mutex unlock
Soumen Kumar Dey [Thu, 15 Sep 2016 03:53:29 +0000 (08:53 +0530)]
Add missing mutex unlock for nvavp_submit.

bug 1775299

Change-Id: I1b525e192bfd9dd19bcd0211484400445eda7b2b
Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
Reviewed-on: http://git-master/r/1221210
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

drivers/media/platform/tegra/nvavp/nvavp_dev.c

index cc98f19..f2cb6a5 100644 (file)
@@ -1540,6 +1540,7 @@ static int nvavp_pushbuffer_submit_ioctl(struct file *filp, unsigned int cmd,
        if (hdr.num_relocs > NVAVP_MAX_RELOCATION_COUNT) {
                dev_err(&nvavp->nvhost_dev->dev,
                        "invalid num_relocs %d\n", hdr.num_relocs);
+                       mutex_unlock(&nvavp->submit_lock);
                return -EINVAL;
        }