[PATCH] USB: minor gadget/rndis tweak
Resove a minor FIXME: don't change MTU while RNDIS link is active, the other end won't expect such things... Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
bae4bd848d
commit
7802ac5c29
1 changed files with 2 additions and 1 deletions
|
@ -1549,7 +1549,8 @@ static int eth_change_mtu (struct net_device *net, int new_mtu)
|
|||
{
|
||||
struct eth_dev *dev = netdev_priv(net);
|
||||
|
||||
// FIXME if rndis, don't change while link's live
|
||||
if (dev->rndis)
|
||||
return -EBUSY;
|
||||
|
||||
if (new_mtu <= ETH_HLEN || new_mtu > ETH_FRAME_LEN)
|
||||
return -ERANGE;
|
||||
|
|
Loading…
Reference in a new issue