Commit 4c2d232d authored by Shuzhen Wang's avatar Shuzhen Wang Committed by Neha Pandey
Browse files

camera: Flush event queue for config node before unsubscribe.



A msm_isp_event_ctrl structure may be attached to a v4l2_event
entry. Before unsubscribing from the event queue, we need to
go through the queue and flush all the entries.

If we leave it to v4l2_event_unsubscribe, msm_isp_event_ctrl
will be leaked.

CRs-Fixed: 433808
Change-Id: I4e7187093c6aa11c64d83a00c310f773a6067f14
Signed-off-by: default avatarShuzhen Wang <shuzhenw@codeaurora.org>
(cherry picked from commit 85a28502e0308cdd8994c654f3166b6edd314322)
parent ab181a2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment