diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2004-06-21 06:25:50 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-21 06:25:50 -0700 |
| commit | e8eaa3264db0e4787caae865feda206a612030a9 (patch) | |
| tree | c191cd6a6f1c9265ffdfcfbe592d70694cdd1c01 /include | |
| parent | 95a02b3c3af8d80729e7ef72df3e55d79f1683d3 (diff) | |
[PATCH] sparse: sock_fprog sanitized
sock_fprog instances that had kernel pointer in ->filter (both of them -
in ppp_generic and isdn_ppp) replaced with explicit pairs len + kernel
pointer. Copying of userland sock_fprog (with its __user ->filter)
cleaned up and sanitized.
Trivial annotation done in the rest of ->ioctl() in ppp_generic and
isdn_ppp.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/isdn_ppp.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/isdn_ppp.h b/include/linux/isdn_ppp.h index 0cc5f030dace..26b00a76e135 100644 --- a/include/linux/isdn_ppp.h +++ b/include/linux/isdn_ppp.h @@ -233,8 +233,9 @@ struct ippp_struct { struct slcompress *slcomp; #endif #ifdef CONFIG_IPPP_FILTER - struct sock_fprog pass_filter; /* filter for packets to pass */ - struct sock_fprog active_filter; /* filter for pkts to reset idle */ + struct sock_filter *pass_filter; /* filter for packets to pass */ + struct sock_filter *active_filter; /* filter for pkts to reset idle */ + unsigned pass_len, active_len; #endif unsigned long debug; struct isdn_ppp_compressor *compressor,*decompressor; |
