mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 02:04:05 +08:00
macvtap: fix the missing ret value of TUNSETQUEUE
Commit 441ac0fcaa
(macvtap: Convert to using rtnl lock) forget to return what
macvtap_ioctl_set_queue() returns to its caller. This may break multiqueue API
by always falling through to TUNGETFEATURES.
Cc: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
21d1196a35
commit
82a19eb8c0
@ -1107,6 +1107,7 @@ static long macvtap_ioctl(struct file *file, unsigned int cmd,
|
||||
rtnl_lock();
|
||||
ret = macvtap_ioctl_set_queue(file, u);
|
||||
rtnl_unlock();
|
||||
return ret;
|
||||
|
||||
case TUNGETFEATURES:
|
||||
if (put_user(IFF_TAP | IFF_NO_PI | IFF_VNET_HDR |
|
||||
|
Loading…
Reference in New Issue
Block a user