projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6890bf3
)
Synchronize file system
91/101491/1
author
Injun Yang
<injun.yang@samsung.com>
Wed, 30 Nov 2016 05:19:20 +0000
(14:19 +0900)
committer
DoHyun Pyun
<dh79.pyun@samsung.com>
Thu, 1 Dec 2016 09:09:59 +0000
(18:09 +0900)
Change-Id: I3e98506ea01212d8ff8cd7125a1499701bc3cc92
Signed-off-by: Injun Yang <injun.yang@samsung.com>
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index
9d75c02
..
ab0be45
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-4856,6
+4856,11
@@
static void set_le_static_address(struct btd_adapter *adapter)
error("Cannot save LE address : %s",
strerror(errno));
}
+
+ ret = fdatasync(fd);
+ if (ret < 0)
+ error("sync failed : %s", strerror(errno));
+
close(fd);
} else {
error("Cannot save LE address");