msm-camera:Fix integer overflow when processing msm gesture ioctl.

Add check for integer overflow.

CRs-Fixed: 483781
Change-Id: I9534421f9780f5880ddc6e89fc2b451285ee60e0
Signed-off-by: Praveen Ac <praveenac@codeaurora.org>
media: dvb: Fix support for maximum TSPP buffer size

The maximum allowed buffer size depends on maximum allowed
number of BAM descriptors. The maximum allowed number of
descriptors was changed to meet HW capabilities. A check
whether user buffer size requires number of descriptors
larger than what is allowed was added.

CRs-Fixed: 490749
Change-Id: Ic60414af156ee8d969263b7636393693277c8f61
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
msm: camera: Handle locks properly

Update camera drivers to unlock mutex while returning
the function in caseof errors.

Change-Id: Iaac7ae3a0337445ee072c10c69080c24ed6e512c
Signed-off-by: satyavaraprasad yerramsetti <satyav@codeaurora.org>
Merge "media: dvb: Fix support for maximum TSPP buffer size"
Merge "msm-camera:Fix integer overflow when processing msm gesture ioctl."
Merge "msm: camera: Handle locks properly"