msm: camera: icp: Prevent out of bound access in acquire
In ICP during acquire, no of output resource can change
from usespace. Change in no of output resource after the
memory allocation may result in out of bound access.
This can be avoided by checking value of no of output
resource during the allocation to the value copied from
userspace after allocation.
Change-Id: Ife0a96bd61fad0ad0481af01734fc4cff68baf5a
Signed-off-by:
Prakasha Nayak <pnayak@codeaurora.org>
Loading
Please register or sign in to comment