projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
btrfs: fix wrong max system array size check in kernel space
[cascardo/linux.git]
/
lib
/
kfifo.c
diff --git
a/lib/kfifo.c
b/lib/kfifo.c
index
7b7f830
..
d79b9d2
100644
(file)
--- a/
lib/kfifo.c
+++ b/
lib/kfifo.c
@@
-215,7
+215,7
@@
static unsigned long kfifo_copy_from_user(struct __kfifo *fifo,
* incrementing the fifo->in index counter
*/
smp_wmb();
* incrementing the fifo->in index counter
*/
smp_wmb();
- *copied = len - ret;
+ *copied = len - ret
* esize
;
/* return the number of elements which are not copied */
return ret;
}
/* return the number of elements which are not copied */
return ret;
}
@@
-275,7
+275,7
@@
static unsigned long kfifo_copy_to_user(struct __kfifo *fifo, void __user *to,
* incrementing the fifo->out index counter
*/
smp_wmb();
* incrementing the fifo->out index counter
*/
smp_wmb();
- *copied = len - ret;
+ *copied = len - ret
* esize
;
/* return the number of elements which are not copied */
return ret;
}
/* return the number of elements which are not copied */
return ret;
}