Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3be8fbab authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

tuntap: fix error return code in tun_set_iff()



Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

[ Bug added in linux-3.8 , commit 4008e97f
  ("tuntap: fix ambigious multiqueue API") ]

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f11a869d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1594,7 +1594,7 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)

		if (tun->flags & TUN_TAP_MQ &&
		    (tun->numqueues + tun->numdisabled > 1))
			return err;
			return -EBUSY;
	}
	else {
		char *name;