Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (867 commits) [SKY2]: status polling loop (post merge) [NET]: Fix NAPI completion handling in some drivers. [TCP]: Limit processing lost_retrans loop to work-to-do cases [TCP]: Fix lost_retrans loop vs fastpath problems [TCP]: No need to re-count fackets_out/sacked_out at RTO [TCP]: Extract tcp_match_queue_to_sack from sacktag code [TCP]: Kill almost unused variable pcount from sacktag [TCP]: Fix mark_head_lost to ignore R-bit when trying to mark L [TCP]: Add bytes_acked (ABC) clearing to FRTO too [IPv6]: Update setsockopt(IPV6_MULTICAST_IF) to support RFC 3493, try2 [NETFILTER]: x_tables: add missing ip6t_modulename aliases [NETFILTER]: nf_conntrack_tcp: fix connection reopening [QETH]: fix qeth_main.c [NETLINK]: fib_frontend build fixes [IPv6]: Export userland ND options through netlink (RDNSS support) [9P]: build fix with !CONFIG_SYSCTL [NET]: Fix dev_put() and dev_hold() comments [NET]: make netlink user -> kernel interface synchronious [NET]: unify netlink kernel socket recognition [NET]: cleanup 3rd argument in netlink_sendskb ... Fix up conflicts manually in Documentation/feature-removal-schedule.txt and my new least favourite crap, the "mod_devicetable" support in the files include/linux/mod_devicetable.h and scripts/mod/file2alias.c. (The latter files seem to be explicitly _designed_ to get conflicts when different subsystems work with them - that have an absolutely horrid lack of subsystem separation!) Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -319,22 +319,21 @@ struct ifconf32 {
|
||||
|
||||
static int dev_ifname32(unsigned int fd, unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
struct net_device *dev;
|
||||
struct ifreq32 ifr32;
|
||||
struct ifreq __user *uifr;
|
||||
int err;
|
||||
|
||||
if (copy_from_user(&ifr32, compat_ptr(arg), sizeof(ifr32)))
|
||||
uifr = compat_alloc_user_space(sizeof(struct ifreq));
|
||||
if (copy_in_user(uifr, compat_ptr(arg), sizeof(struct ifreq32)));
|
||||
return -EFAULT;
|
||||
|
||||
dev = dev_get_by_index(ifr32.ifr_ifindex);
|
||||
if (!dev)
|
||||
return -ENODEV;
|
||||
err = sys_ioctl(fd, SIOCGIFNAME, (unsigned long)uifr);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
strlcpy(ifr32.ifr_name, dev->name, sizeof(ifr32.ifr_name));
|
||||
dev_put(dev);
|
||||
|
||||
err = copy_to_user(compat_ptr(arg), &ifr32, sizeof(ifr32));
|
||||
return (err ? -EFAULT : 0);
|
||||
if (copy_in_user(compat_ptr(arg), uifr, sizeof(struct ifreq32)))
|
||||
return -EFAULT;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int dev_ifconf(unsigned int fd, unsigned int cmd, unsigned long arg)
|
||||
|
Reference in New Issue
Block a user