Skip to content

Commit ecc64d2

Browse files
committed
Merge tag 'sysctl-7.00-fixes-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl
Pull sysctl fix from Joel Granados: - Fix error when reporting jiffies converted values back to user space Return the converted value instead of "Invalid argument" error * tag 'sysctl-7.00-fixes-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl: time/jiffies: Fix sysctl file error on configurations where USER_HZ < HZ
2 parents 4053c47 + 6932256 commit ecc64d2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

kernel/time/jiffies.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,6 @@ EXPORT_SYMBOL(proc_dointvec_jiffies);
256256
int proc_dointvec_userhz_jiffies(const struct ctl_table *table, int dir,
257257
void *buffer, size_t *lenp, loff_t *ppos)
258258
{
259-
if (SYSCTL_USER_TO_KERN(dir) && USER_HZ < HZ)
260-
return -EINVAL;
261259
return proc_dointvec_conv(table, dir, buffer, lenp, ppos,
262260
do_proc_int_conv_userhz_jiffies);
263261
}

0 commit comments

Comments
 (0)