OSDN Git Service

msm: camera: cpp: Check for valid tx level
authorPratap Nirujogi <pratapn@codeaurora.org>
Wed, 8 Aug 2018 15:13:29 +0000 (20:43 +0530)
committerPratap Nirujogi <pratapn@codeaurora.org>
Thu, 9 Aug 2018 06:06:18 +0000 (11:36 +0530)
commita98c0c65522b04a7adf81386eab1f64e5b42526a
treecf8fe63414427667db74765b4edcc5a45a94dd04
parent9656c6c6419134ae58b11bb776ad9ceee240e04d
msm: camera: cpp: Check for valid tx level

TX and RX FIFOs of Microcontroller are used to exchange commands
and messages between Micro FW and CPP driver. TX FIFO depth is
16 32-bit words, incase of errors there is a chance of overflow.
To prevent possible out of bound access, TX FIFO depth or
level is checked for MAX depth before accessing the FIFO.

Change-Id: I5adf39b46ff10e358c4a2c03a2de07d44b99cedb
Signed-off-by: Pratap Nirujogi <pratapn@codeaurora.org>
drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c