mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
net: tun.c fix cast
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
25ac3c2483
commit
c0e5a8c21b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user