diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2021-02-24 13:36:58 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2021-02-24 13:36:58 +0100 |
commit | cdd38c5f1ce4398ec58fec95904b75824daab7b5 (patch) | |
tree | 639cf51fe8ee120a13e61b13d448aeaf4d044c74 /net/ieee802154 | |
parent | 04052a318fb93491f1f3b4d282cb806f588e9326 (diff) | |
parent | fcb3007371e1a4afb03280af1b336a83287fe115 (diff) | |
download | linux-cdd38c5f1ce4398ec58fec95904b75824daab7b5.tar.gz linux-cdd38c5f1ce4398ec58fec95904b75824daab7b5.tar.bz2 linux-cdd38c5f1ce4398ec58fec95904b75824daab7b5.zip |
Merge remote-tracking branch 'net/master'
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/nl-mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/nl-mac.c b/net/ieee802154/nl-mac.c index 6d091e419d3e..9c640d670ffe 100644 --- a/net/ieee802154/nl-mac.c +++ b/net/ieee802154/nl-mac.c @@ -149,7 +149,7 @@ static struct net_device *ieee802154_nl_get_dev(struct genl_info *info) if (info->attrs[IEEE802154_ATTR_DEV_NAME]) { char name[IFNAMSIZ + 1]; - nla_strlcpy(name, info->attrs[IEEE802154_ATTR_DEV_NAME], + nla_strscpy(name, info->attrs[IEEE802154_ATTR_DEV_NAME], sizeof(name)); dev = dev_get_by_name(&init_net, name); } else if (info->attrs[IEEE802154_ATTR_DEV_INDEX]) { |