From: jinhyung.jo Date: Tue, 19 Aug 2014 08:16:33 +0000 (+0900) Subject: maru_camera: Bug fix X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~261 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de67227020a61d8353e137c38f653c95dde1e62e;p=sdk%2Femulator%2Fqemu.git maru_camera: Bug fix missing fd close on error condition Change-Id: I9146550121654de8c70846edebcbd67690eac364 Signed-off-by: Jinhyung Jo --- diff --git a/tizen/src/hw/maru_camera_linux_pci.c b/tizen/src/hw/maru_camera_linux_pci.c index adcee1e2f3..7993f12433 100644 --- a/tizen/src/hw/maru_camera_linux_pci.c +++ b/tizen/src/hw/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), "