]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/tun.c
net: tun.c fix cast
[karo-tx-linux.git] / 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;