Re: [PATCH net] tuntap: correct the return value in tun_set_iff()

From: David Miller
Date: Thu Apr 25 2013 - 01:49:31 EST

From: Jason Wang <jasowang@xxxxxxxxxx>
Date: Tue, 23 Apr 2013 14:40:39 +0800

> commit (3be8fbab tuntap: fix error return code in tun_set_iff()) breaks the
> creation of multiqueue tuntap since it forbids to create more than one queues
> for a multiqueue tuntap device. We need return 0 instead -EBUSY here since we
> don't want to re-initialize the device when one or more queues has been already
> attached. Add a comment and correct the return value to zero.
> Reported-by: Jerry Chu <hkchu@xxxxxxxxxx>
> Cc: Jerry Chu <hkchu@xxxxxxxxxx>
> Cc: Wei Yongjun <>
> Cc: Eric Dumazet <edumazet@xxxxxxxxxx>
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at