ipv6: lift copy_from_user out of ipv6_route_ioctl
Prepare for better compat ioctl handling by moving the user copy out of ipv6_route_ioctl. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a307593a64
commit
7c1552da90
@@ -118,7 +118,8 @@ void ip6_route_init_special_entries(void);
|
||||
int ip6_route_init(void);
|
||||
void ip6_route_cleanup(void);
|
||||
|
||||
int ipv6_route_ioctl(struct net *net, unsigned int cmd, void __user *arg);
|
||||
int ipv6_route_ioctl(struct net *net, unsigned int cmd,
|
||||
struct in6_rtmsg *rtmsg);
|
||||
|
||||
int ip6_route_add(struct fib6_config *cfg, gfp_t gfp_flags,
|
||||
struct netlink_ext_ack *extack);
|
||||
|
Reference in New Issue
Block a user