diff options
author | Eric Paris <eparis@redhat.com> | 2014-03-07 11:41:32 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-03-07 11:41:32 -0500 |
commit | b7d3622a39fde7658170b7f3cf6c6889bb8db30d (patch) | |
tree | 64f4e781ecb2a85d675e234072b988560bcd25f1 /kernel/sysctl_binary.c | |
parent | f3411cb2b2e396a41ed3a439863f028db7140a34 (diff) | |
parent | d8ec26d7f8287f5788a494f56e8814210f0e64be (diff) |
Merge tag 'v3.13' into for-3.15
Linux 3.13
Conflicts:
include/net/xfrm.h
Simple merge where v3.13 removed 'extern' from definitions and the audit
tree did s/u32/unsigned int/ to the same definitions.
Diffstat (limited to 'kernel/sysctl_binary.c')
-rw-r--r-- | kernel/sysctl_binary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c index b609213ca9a2..653cbbd9e7ad 100644 --- a/kernel/sysctl_binary.c +++ b/kernel/sysctl_binary.c | |||
@@ -1024,7 +1024,7 @@ static ssize_t bin_intvec(struct file *file, | |||
1024 | if (get_user(value, vec + i)) | 1024 | if (get_user(value, vec + i)) |
1025 | goto out_kfree; | 1025 | goto out_kfree; |
1026 | 1026 | ||
1027 | str += snprintf(str, end - str, "%lu\t", value); | 1027 | str += scnprintf(str, end - str, "%lu\t", value); |
1028 | } | 1028 | } |
1029 | 1029 | ||
1030 | result = kernel_write(file, buffer, str - buffer, 0); | 1030 | result = kernel_write(file, buffer, str - buffer, 0); |
@@ -1095,7 +1095,7 @@ static ssize_t bin_ulongvec(struct file *file, | |||
1095 | if (get_user(value, vec + i)) | 1095 | if (get_user(value, vec + i)) |
1096 | goto out_kfree; | 1096 | goto out_kfree; |
1097 | 1097 | ||
1098 | str += snprintf(str, end - str, "%lu\t", value); | 1098 | str += scnprintf(str, end - str, "%lu\t", value); |
1099 | } | 1099 | } |
1100 | 1100 | ||
1101 | result = kernel_write(file, buffer, str - buffer, 0); | 1101 | result = kernel_write(file, buffer, str - buffer, 0); |
@@ -1205,7 +1205,7 @@ static ssize_t bin_dn_node_address(struct file *file, | |||
1205 | if (get_user(dnaddr, (__le16 __user *)newval)) | 1205 | if (get_user(dnaddr, (__le16 __user *)newval)) |
1206 | goto out; | 1206 | goto out; |
1207 | 1207 | ||
1208 | len = snprintf(buf, sizeof(buf), "%hu.%hu", | 1208 | len = scnprintf(buf, sizeof(buf), "%hu.%hu", |
1209 | le16_to_cpu(dnaddr) >> 10, | 1209 | le16_to_cpu(dnaddr) >> 10, |
1210 | le16_to_cpu(dnaddr) & 0x3ff); | 1210 | le16_to_cpu(dnaddr) & 0x3ff); |
1211 | 1211 | ||