From ed37d3cd95652700047beb0858d1b1c67b3caf5a Mon Sep 17 00:00:00 2001 From: "jinhyung.jo" Date: Tue, 19 Aug 2014 17:16:33 +0900 Subject: [PATCH] maru_camera: Bug fix missing fd close on error condition Change-Id: I9146550121654de8c70846edebcbd67690eac364 Signed-off-by: Jinhyung Jo --- tizen/src/hw/pci/maru_camera_linux_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tizen/src/hw/pci/maru_camera_linux_pci.c b/tizen/src/hw/pci/maru_camera_linux_pci.c index c4e13403b5..2b79a0e399 100644 --- a/tizen/src/hw/pci/maru_camera_linux_pci.c +++ b/tizen/src/hw/pci/maru_camera_linux_pci.c @@ -859,6 +859,8 @@ void marucam_device_open(MaruCamState *state) "errstr(%s)\n", dst_fmt.fmt.pix.pixelformat, dst_fmt.fmt.pix.width, dst_fmt.fmt.pix.height, strerror(errno)); param->errCode = errno; + v4l2_close(v4l2_fd); + v4l2_fd = -1; return; } TRACE("Set the default format: w:h(%dx%d), fmt(0x%x), size(%d), " -- 2.34.1