X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fcore%2Fethtool.c;h=2b587ec0714010aea57c25d7697cd520647694bd;hp=f444817071245006200ba882a2f085ee43ae3773;hb=077ae2b73b4c110e9d458b071a61c9f2b33ee58e;hpb=6681ba7ec480bc839584fd0817991d248b4b9e44 diff --git a/net/core/ethtool.c b/net/core/ethtool.c index f44481707124..2b587ec07140 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -1549,6 +1549,8 @@ static noinline_for_stack int ethtool_flash_device(struct net_device *dev, if (!dev->ethtool_ops->flash_device) return -EOPNOTSUPP; + efl.data[ETHTOOL_FLASH_MAX_FILENAME - 1] = 0; + return dev->ethtool_ops->flash_device(dev, &efl); }