diff --git a/scst/src/scst_copy_mgr.c b/scst/src/scst_copy_mgr.c index f2b7eb476..62fdb781a 100644 --- a/scst/src/scst_copy_mgr.c +++ b/scst/src/scst_copy_mgr.c @@ -2535,9 +2535,13 @@ static int scst_cm_dev_register(struct scst_device *dev, uint64_t lun) list_for_each_entry(tgt_dev, head, sess_tgt_dev_list_entry) { if (tgt_dev->dev == dev) { + /* + * It's OK, because the copy manager could + * auto register some devices + */ TRACE_DBG("Copy Manager already registered " "device %s", dev->virt_name); - res = -EEXIST; + res = 0; goto out; } }