mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
net: account alternate interface name memory
George reports that altnames can eat up kernel memory. We should charge that memory appropriately. Reported-by: George Shuklin <george.shuklin@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1926407a4a
commit
5d26cff5bd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue