summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2014-07-23 16:47:32 -0300
committerDavid S. Miller <davem@davemloft.net>2014-07-24 18:09:52 -0700
commitb3565f278a9babc00032292be489e7fbff4f48d1 (patch)
tree79f99cf6c55a5c9fc663357008f7e3b9b873cf8d /drivers/media
parenta71e3c37960ce5f9c6a519bc1215e3ba9fa83e75 (diff)
downloadlinux-b3565f278a9babc00032292be489e7fbff4f48d1.tar.bz2
net: phy: Ensure the MDIO bus module is held
This commit adds proper module_{get,put} to prevent the MDIO bus module from being unloaded while the phydev is connected. By doing so, we fix a kernel panic produced when a MDIO driver is removed, but the phydev that relies on it is attached and running. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Tested-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions