[PATCH] sysctl: Fix conversion of INT_MIN for LP64 systems

2015-07-11 Thread Robert Xiao
. Test: root:/proc/sys/kernel# echo -2147483648 0 0 0 > printk root:/proc/sys/kernel# cat printk Without patch, produces -18446744071562067968 0 0 0. With patch, should produce -2147483648 0 0 0. Signed-off-by: Robert Xiao --- kernel/sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH] sysctl: Fix conversion of INT_MIN for LP64 systems

2015-07-11 Thread Robert Xiao
. Test: root:/proc/sys/kernel# echo -2147483648 0 0 0 > printk root:/proc/sys/kernel# cat printk Without patch, produces -18446744071562067968 0 0 0. With patch, should produce -2147483648 0 0 0. Signed-off-by: Robert Xiao --- kernel/sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH] sysctl: Fix conversion of INT_MIN for LP64 systems

2015-07-11 Thread Robert Xiao
. Test: root:/proc/sys/kernel# echo -2147483648 0 0 0 > printk root:/proc/sys/kernel# cat printk Without patch, produces -18446744071562067968 0 0 0. With patch, should produce -2147483648 0 0 0. Signed-off-by: Robert Xiao --- kernel/sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti