diff options
author | Francesco Fusco <[email protected]> | 2013-07-24 10:39:07 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2013-07-26 14:22:10 -0700 |
commit | d738ce8fdc05ebf5b1475f8ae26d908c8c50970b (patch) | |
tree | 0ed3038b6f7950d826ca0bc24a7e98f033f88b44 /net/unix/af_unix.c | |
parent | 555445cd11803c6bc93b2be31968f3949ef7708b (diff) |
sysctl: range checking in do_proc_dointvec_ms_jiffies_conv
When (integer) sysctl values are expressed in ms and have to be
represented internally as jiffies. The msecs_to_jiffies function
returns an unsigned long, which gets assigned to the integer.
This patch prevents the value to be assigned if bigger than
INT_MAX, done in a similar way as in cba9f3 ("Range checking in
do_proc_dointvec_(userhz_)jiffies_conv").
Signed-off-by: Francesco Fusco <[email protected]>
CC: Andrew Morton <[email protected]>
CC: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions