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:
Родитель
25ac3c2483
Коммит
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче