Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jesse/openvswitch
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / openvswitch / vport-internal_dev.c
index 90816c71c087d178e46817ab38590483fc9ada46..40f8a2489c90749dcd61fd84e05f37f63004a3b5 100644 (file)
@@ -87,7 +87,7 @@ static int internal_dev_stop(struct net_device *netdev)
 static void internal_dev_getinfo(struct net_device *netdev,
                                 struct ethtool_drvinfo *info)
 {
-       strcpy(info->driver, "openvswitch");
+       strlcpy(info->driver, "openvswitch", sizeof(info->driver));
 }
 
 static const struct ethtool_ops internal_dev_ethtool_ops = {