summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/translation-table.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2016-06-25 01:25:24 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-29 09:51:40 +0200
commit69fc58a57e56bf5e39b48809aefffdaa1b04c945 (patch)
tree765e38a7aa3f81cdf02fd0750e810e729ecfa084 /net/batman-adv/translation-table.c
parentsock_diag: do not broadcast raw socket destruction (diff)
downloadlinux-69fc58a57e56bf5e39b48809aefffdaa1b04c945.tar.xz
linux-69fc58a57e56bf5e39b48809aefffdaa1b04c945.zip
net: phy: Manage fixed PHY address space using IDA
If we have a system which uses fixed PHY devices and calls fixed_phy_register() then fixed_phy_unregister() we can exhaust the number of fixed PHYs available after a while, since we keep incrementing the variable phy_fixed_addr, but we never decrement it. This patch fixes that by converting the fixed PHY allocation to using IDA, which takes care of the allocation/dealloaction of the PHY addresses for us. Fixes: a75951217472 ("net: phy: extend fixed driver with fixed_phy_register()") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/translation-table.c')
0 files changed, 0 insertions, 0 deletions