Skip to content
Commit 3f5de9fc authored by Ray Essick's avatar Ray Essick
Browse files

mm-video-v4l2: Protect buffer access and increase input buffer size

Protect buffer access for below scenarios:

*Increase the scope of buf_lock in free_buffer to avoid access
 of freed buffer for both input and output buffers. Also, add check
 before output buffer access.

*Disallow allocate buffer mode after client has called use buffer.

Allocate additional 512 bytes of memory for input buffers on top of
allocation size as per hardware requirement

Change-Id: I49915dcf33e0dce94fe8ecb7334c7725d54c22aa
Author: Santhosh Behara <santhoshbehara@codeaurora.org>
Bug: 64340487
Test: PoC before/after
Merged-In: Icc65fe43134493fefe6e420ca818f60995084871
Merged-In: I70fa1dc7ac43b9281209955afc30f6737ce25f0e
Merged-In: I722ab9b6ecff20dcb97bc3b02830ef484e8bd495
Merged-In: I2e45bbcc6a2438ff226409b35ee802d123cf3dd8
parent b701fb18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment