Revert "blockdev: bug fix for multiple sdcard attachment with same ID"
authorChulHo Song <ch81.song@samsung.com>
Wed, 30 Sep 2015 04:26:30 +0000 (13:26 +0900)
committerChulHo Song <ch81.song@samsung.com>
Wed, 30 Sep 2015 04:26:41 +0000 (13:26 +0900)
This reverts commit 0e218af5119f14fb3172097833e1851bc32be73e.

Change-Id: Idde0232cd4533bb04f001d9c5ef581e578e1ca03
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
block/block-backend.c

index 356a92a..d0692b1 100644 (file)
@@ -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 blk_by_name(name);
+        error_setg(errp, "Device with id '%s' already exists", name);
+        return NULL;
     }
     if (bdrv_find_node(name)) {
         error_setg(errp,