scst_copy_mgr: Warn if LUN lookup fails

It really is a bug if LUN lookup fails. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2017-02-27 22:36:33 +00:00
parent 19212e4f29
commit 08f2570761
+2
View File
@@ -2544,6 +2544,8 @@ static unsigned int scst_cm_get_lun(const struct scst_device *dev)
}
}
WARN_ON_ONCE(res == SCST_MAX_LUN);
out:
TRACE_EXIT_RES(res);
return res;