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:
f039fcb
)
blockdev: bug fix for multiple sdcard attachment with same ID
author
haken.kim
<haken.kim@samsung.com>
Thu, 24 Sep 2015 06:58:51 +0000
(15:58 +0900)
committer
Sangho Park
<sangho.p@samsung.com>
Thu, 24 Sep 2015 12:50:35 +0000
(21:50 +0900)
- returns BlockBackend if the device id already exits
Change-Id: I7c1417569321f16460f32e238489e59c04eecf84
Signed-off-by: haken.kim <haken.kim@samsung.com>
block/block-backend.c
patch
|
blob
|
history
diff --git
a/block/block-backend.c
b/block/block-backend.c
index d0692b18e928d151643d7909172ca178d267c4ff..356a92aef82af98656dd6eb0ffb6670d1aa104db 100644
(file)
--- a/
block/block-backend.c
+++ b/
block/block-backend.c
@@
-54,8
+54,8
@@
BlockBackend *blk_new(const char *name, Error **errp)
return NULL;
}
if (blk_by_name(name)) {
- error_setg(errp, "Device with id '%s' already exists", name);
- return
NULL
;
+
//
error_setg(errp, "Device with id '%s' already exists", name);
+ return
blk_by_name(name)
;
}
if (bdrv_find_node(name)) {
error_setg(errp,