Commit 5d26cff5 authored by Jakub Kicinski's avatar Jakub Kicinski

net: account alternate interface name memory

George reports that altnames can eat up kernel memory.
We should charge that memory appropriately.
Reported-by: default avatarGeorge Shuklin <george.shuklin@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 1926407a
......@@ -3658,7 +3658,7 @@ static int rtnl_alt_ifname(int cmd, struct net_device *dev, struct nlattr *attr,
if (err)
return err;
alt_ifname = nla_strdup(attr, GFP_KERNEL);
alt_ifname = nla_strdup(attr, GFP_KERNEL_ACCOUNT);
if (!alt_ifname)
return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment