mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user