mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Merge of r964:
Fixes incorrect errors reporting on devices unregistration. git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@965 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -98,7 +98,8 @@ space device. It doesn't have any parameters.
|
||||
|
||||
During execution of SCST_USER_UNREGISTER_DEVICE at least one another
|
||||
thread must process all coming subcommands, otherwise after timeout it
|
||||
will fail with EBUSY error.
|
||||
will fail with EBUSY error. The processing should stop on receiving
|
||||
ENODEV error.
|
||||
|
||||
SCST_USER_UNREGISTER_DEVICE returns 0 on success or -1 in case of error,
|
||||
and errno is set appropriately.
|
||||
|
||||
@@ -284,7 +284,7 @@ static inline int calc_num_pg(unsigned long buf, int len)
|
||||
|
||||
static void __dev_user_not_reg(void)
|
||||
{
|
||||
PRINT_ERROR("%s", "Device not registered");
|
||||
TRACE(TRACE_MGMT_MINOR, "%s", "Device not registered");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -292,7 +292,7 @@ static inline int dev_user_check_reg(struct scst_user_dev *dev)
|
||||
{
|
||||
if (dev == NULL) {
|
||||
__dev_user_not_reg();
|
||||
return -EINVAL;
|
||||
return -ENODEV;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user