projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c393f82
)
tag: Verify tag content only when the write part succeeded
author
Ravi kumar Veeramally
<ravikumar.veeramally@linux.intel.com>
Mon, 6 Aug 2012 14:26:04 +0000
(17:26 +0300)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 7 Aug 2012 19:15:44 +0000
(21:15 +0200)
src/tag.c
patch
|
blob
|
history
diff --git
a/src/tag.c
b/src/tag.c
index
3c2c544
..
c169a57
100644
(file)
--- a/
src/tag.c
+++ b/
src/tag.c
@@
-262,7
+262,8
@@
static void write_cb(uint32_t adapter_idx, uint32_t target_idx, int status)
tag->records = NULL;
g_free(tag->data);
- __near_tag_read(tag, tag_read_cb);
+ if (status == 0)
+ __near_tag_read(tag, tag_read_cb);
}
static void format_cb(uint32_t adapter_idx, uint32_t target_idx, int status)