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:
Bart Van Assche
2015-06-11 16:43:44 +00:00
parent c7d8a1fa7d
commit 0c4813bf30

View File

@@ -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;