public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c23f29
)
devio: fix stupid bug I introduced
author
Alan Cox
<alan@linux.intel.com>
Fri, 2 Oct 2015 15:46:23 +0000
(16:46 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Fri, 2 Oct 2015 15:46:23 +0000
(16:46 +0100)
Kernel/devio.c
patch
|
blob
|
history
diff --git
a/Kernel/devio.c
b/Kernel/devio.c
index
608b1e6
..
f1bad74
100644
(file)
--- a/
Kernel/devio.c
+++ b/
Kernel/devio.c
@@
-445,7
+445,7
@@
bool uninsq(struct s_queue *q, unsigned char *cp)
int psleep_flags_io(void *p, unsigned char flags, usize_t *n)
{
if (flags & O_NDELAY) {
- if (*n) {
+ if (
!
*n) {
*n = (usize_t)-1;
udata.u_error = EAGAIN;
}
@@
-453,7
+453,7
@@
int psleep_flags_io(void *p, unsigned char flags, usize_t *n)
}
psleep(p);
if (udata.u_cursig || udata.u_ptab->p_pending) { /* messy */
- if (*n) {
+ if (
!
*n) {
*n = (usize_t)-1;
udata.u_error = EINTR;
}