]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
net: tun.c fix cast
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 16 Jul 2008 19:45:34 +0000 (12:45 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 22 Jul 2008 21:54:17 +0000 (17:54 -0400)
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/tun.c

index a82b32b401319c0749eac671849e2e2792edca1b..e6bbc639c2d0c8428cc28e29692760f549bf50ce 100644 (file)
@@ -900,7 +900,7 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file,
                if ((tun->flags & TUN_TYPE_MASK) != TUN_TAP_DEV)
                        return -EINVAL;
                rtnl_lock();
-               ret = update_filter(&tun->txflt, (void *) __user arg);
+               ret = update_filter(&tun->txflt, (void __user *)arg);
                rtnl_unlock();
                return ret;