diff options
author | David Huang <d-huang@ti.com> | 2016-12-22 14:18:30 -0600 |
---|---|---|
committer | David Huang <d-huang@ti.com> | 2016-12-22 14:18:30 -0600 |
commit | 3cc2bcda43f190846191e1979c0497328c1ad05f (patch) | |
tree | 18ee371a78ab412cca7bf2152eaae888e65a3784 | |
parent | 8016f61eb13a71f31b826a4b131ccd0c7ea29f1e (diff) | |
download | dra7xx-3cc2bcda43f190846191e1979c0497328c1ad05f.tar.gz |
dra7xx: camera: Camera Robustness Fix
V4L M2M interface was not closing file descriptors
on successfully detecting the VPE. Accumulation of
open file descriptors was causing robustness failure
over multiple camera open/close operations. Add the
necessary close for the temporary handle.
Change-Id: I9a4a8abf785bb4f46780a4d0b73a16d429a78c29
Signed-off-by: David Huang <d-huang@ti.com>
-rw-r--r-- | camera/V4LCameraAdapter/V4LM2M.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/V4LCameraAdapter/V4LM2M.cpp b/camera/V4LCameraAdapter/V4LM2M.cpp index 4495e20..deb0637 100644 --- a/camera/V4LCameraAdapter/V4LM2M.cpp +++ b/camera/V4LCameraAdapter/V4LM2M.cpp @@ -435,7 +435,7 @@ char *detectM2MDevice() close(tempHandle); continue; } - + close(tempHandle); strcpy(device, video_device_list[i]); ALOGE("Found VPE M2M device %s!!!", device); break; |