Commit d75b0fd4 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: more netfilter annotation

parent 43638f5e
...@@ -205,7 +205,7 @@ struct arpt_replace ...@@ -205,7 +205,7 @@ struct arpt_replace
/* Number of counters (must be equal to current number of entries). */ /* Number of counters (must be equal to current number of entries). */
unsigned int num_counters; unsigned int num_counters;
/* The old entries' counters. */ /* The old entries' counters. */
struct arpt_counters *counters; struct arpt_counters __user *counters;
/* The entries (hang off end: not really an array). */ /* The entries (hang off end: not really an array). */
struct arpt_entry entries[0]; struct arpt_entry entries[0];
......
...@@ -252,7 +252,7 @@ struct ipt_replace ...@@ -252,7 +252,7 @@ struct ipt_replace
/* Number of counters (must be equal to current number of entries). */ /* Number of counters (must be equal to current number of entries). */
unsigned int num_counters; unsigned int num_counters;
/* The old entries' counters. */ /* The old entries' counters. */
struct ipt_counters *counters; struct ipt_counters __user *counters;
/* The entries (hang off end: not really an array). */ /* The entries (hang off end: not really an array). */
struct ipt_entry entries[0]; struct ipt_entry entries[0];
......
...@@ -258,7 +258,7 @@ struct ip6t_replace ...@@ -258,7 +258,7 @@ struct ip6t_replace
/* Number of counters (must be equal to current number of entries). */ /* Number of counters (must be equal to current number of entries). */
unsigned int num_counters; unsigned int num_counters;
/* The old entries' counters. */ /* The old entries' counters. */
struct ip6t_counters *counters; struct ip6t_counters __user *counters;
/* The entries (hang off end: not really an array). */ /* The entries (hang off end: not really an array). */
struct ip6t_entry entries[0]; struct ip6t_entry entries[0];
......
...@@ -175,7 +175,7 @@ static int ip_recent_get_info(char *buffer, char **start, off_t offset, int leng ...@@ -175,7 +175,7 @@ static int ip_recent_get_info(char *buffer, char **start, off_t offset, int leng
* clear -- Flush table, remove all entries * clear -- Flush table, remove all entries
*/ */
static int ip_recent_ctrl(struct file *file, const char *input, unsigned long size, void *data) static int ip_recent_ctrl(struct file *file, const char __user *input, unsigned long size, void *data)
{ {
static const u_int32_t max[4] = { 0xffffffff, 0xffffff, 0xffff, 0xff }; static const u_int32_t max[4] = { 0xffffffff, 0xffffff, 0xffff, 0xff };
u_int32_t val; u_int32_t val;
......
...@@ -1028,7 +1028,7 @@ get_counters(const struct ip6t_table_info *t, ...@@ -1028,7 +1028,7 @@ get_counters(const struct ip6t_table_info *t,
static int static int
copy_entries_to_user(unsigned int total_size, copy_entries_to_user(unsigned int total_size,
struct ip6t_table *table, struct ip6t_table *table,
void *userptr) void __user *userptr)
{ {
unsigned int off, num, countersize; unsigned int off, num, countersize;
struct ip6t_entry *e; struct ip6t_entry *e;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment