ionvideo: check and releaes ion_id when fd closed [1/1]
authorRico Yang <wei.yang@amlogic.com>
Tue, 27 Aug 2019 02:17:49 +0000 (22:17 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 3 Sep 2019 08:24:50 +0000 (01:24 -0700)
commite7a45a133049ecd75a06b1811516cd1676b16f2c
tree80b80a4abe982a7db61dafdc08b95931bbb11a70
parent551936abc18b0b7b5633ef594911ce5b097aa9ab
ionvideo: check and releaes ion_id when fd closed [1/1]

PD#SH-726

Problem:
ion_id leak

Solution:
release ion_id when closed

Verify:
verified on w400

Change-Id: Ie72a0fb5f4243d83aa5d7ca6be2c5cfa8844a6b2
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
drivers/amlogic/media/video_processor/ionvideo/ionvideo.c