]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: davinci_emac: Fix devioctl while in fixed link
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 25 Apr 2016 17:41:38 +0000 (19:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 19:51:25 +0000 (15:51 -0400)
commit74fd739e852d92f60117f6d87eb52c5b0a69eba4
tree9c193dd9fdfbf9a11889ffb48b4006b4123e9d51
parent09113876a30f8595d7b7ea2cae86607f96f3e6c6
net: ethernet: davinci_emac: Fix devioctl while in fixed link

When configured in fixed link, the DaVinci emac driver sets the
priv->phydev to NULL and further ioctl calls to the phy_mii_ioctl()
causes the kernel to crash.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Fixes: d9f886a15f89 ("net: davinci_emac: Add support for fixed-link PHY")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c