jrcu: bugfix: process all tokens
PATCH 20/24 jrcu: bugfix: process all tokens
jrcu: process all tokens written to debugfs file rcudata, not just the first one.
Signed-off-by Joe Korty <[email protected]>
kernel/jrcu.c +2 -2
@@ -659,6 +659,7 @@ static ssize_t rcu_debugfs_write(structif (__get_user (c, &buffer[i++]))return -EFAULT ; +next:/* Token extractor -- first, skip leading whitepace */ while (c &&isspace (c) && i < count) {if (__get_user (c, &buffer[i++]))
@@ -693,8 +694,7 @@ static ssize_t rcu_debugfs_write(struct rcu_wdog_lim = wdog *USEC_PER_SEC ; }else return -EINVAL ; - -return count; + goto next; }static int rcu_debugfs_open (struct inode *inode,struct file *file)