projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f7ab34
)
maru_camera: Bug fix
author
jinhyung.jo
<jinhyung.jo@samsung.com>
Tue, 19 Aug 2014 08:16:33 +0000
(17:16 +0900)
committer
jinhyung.jo
<jinhyung.jo@samsung.com>
Wed, 3 Sep 2014 06:27:17 +0000
(15:27 +0900)
missing fd close on error condition
Change-Id: I9146550121654de8c70846edebcbd67690eac364
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
tizen/src/hw/maru_camera_linux_pci.c
patch
|
blob
|
history
diff --git
a/tizen/src/hw/maru_camera_linux_pci.c
b/tizen/src/hw/maru_camera_linux_pci.c
index adcee1e2f35f1f5546a2306a632aa8dc9b8ffa28..7993f12433c33c13c97906d8902e669c1171f85d 100644
(file)
--- 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), "