mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
Merge r5901 from the iser branch
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6278 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -602,7 +602,9 @@ static ssize_t isert_read(struct file *filp, char __user *buf, size_t count,
|
||||
break;
|
||||
|
||||
default:
|
||||
sBUG();
|
||||
PRINT_ERROR("Invalid state in %s (%d)\n", __func__,
|
||||
dev->state);
|
||||
to_read = 0;
|
||||
}
|
||||
|
||||
return to_read;
|
||||
@@ -644,7 +646,9 @@ static ssize_t isert_write(struct file *filp, const char __user *buf,
|
||||
break;
|
||||
|
||||
default:
|
||||
sBUG();
|
||||
PRINT_ERROR("Invalid state in %s (%d)\n", __func__,
|
||||
dev->state);
|
||||
to_write = 0;
|
||||
}
|
||||
|
||||
return to_write;
|
||||
|
||||
Reference in New Issue
Block a user