From: haken.kim Date: Thu, 24 Sep 2015 06:58:51 +0000 (+0900) Subject: blockdev: bug fix for multiple sdcard attachment with same ID X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~40^2~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e218af5119f14fb3172097833e1851bc32be73e;p=sdk%2Femulator%2Fqemu.git blockdev: bug fix for multiple sdcard attachment with same ID - returns BlockBackend if the device id already exits Change-Id: I7c1417569321f16460f32e238489e59c04eecf84 Signed-off-by: haken.kim --- diff --git a/block/block-backend.c b/block/block-backend.c index d0692b18e9..356a92aef8 100644 --- 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,