linux_dsm_epyc7002/drivers/net/ethernet/ti
Neil Armstrong 210990b05a net: ethernet: davinci_emac: Fix platform_data overwrite
When the DaVinci emac driver is removed and re-probed, the actual
pdev->dev.platform_data is populated with an unwanted valid pointer saved by
the previous davinci_emac_of_get_pdata() call, causing a kernel crash when
calling priv->int_disable() in emac_int_disable().

Unable to handle kernel paging request at virtual address c8622a80
...
[<c0426fb4>] (emac_int_disable) from [<c0427700>] (emac_dev_open+0x290/0x5f8)
[<c0427700>] (emac_dev_open) from [<c04c00ec>] (__dev_open+0xb8/0x120)
[<c04c00ec>] (__dev_open) from [<c04c0370>] (__dev_change_flags+0x88/0x14c)
[<c04c0370>] (__dev_change_flags) from [<c04c044c>] (dev_change_flags+0x18/0x48)
[<c04c044c>] (dev_change_flags) from [<c052bafc>] (devinet_ioctl+0x6b4/0x7ac)
[<c052bafc>] (devinet_ioctl) from [<c04a1428>] (sock_ioctl+0x1d8/0x2c0)
[<c04a1428>] (sock_ioctl) from [<c014f054>] (do_vfs_ioctl+0x41c/0x600)
[<c014f054>] (do_vfs_ioctl) from [<c014f2a4>] (SyS_ioctl+0x6c/0x7c)
[<c014f2a4>] (SyS_ioctl) from [<c000ff60>] (ret_fast_syscall+0x0/0x1c)

Fixes: 42f59967a0 ("net: ethernet: davinci_emac: add OF support")
Cc: Brian Hutchinson <b.hutchman@gmail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-21 14:57:47 -04:00
..
cpmac.c
cpsw_ale.c
cpsw_ale.h
cpsw-common.c
cpsw-phy-sel.c
cpsw.c drivers: net: cpsw: fix wrong regs access in cpsw_ndo_open 2016-04-21 14:30:39 -04:00
cpsw.h
cpts.c
cpts.h
davinci_cpdma.c
davinci_cpdma.h
davinci_emac.c net: ethernet: davinci_emac: Fix platform_data overwrite 2016-04-21 14:57:47 -04:00
davinci_mdio.c
Kconfig
Makefile
netcp_core.c net: relax setup_tc ndo op handle restriction 2016-03-03 16:25:15 -05:00
netcp_ethss.c
netcp_sgmii.c
netcp_xgbepcsr.c
netcp.h
tlan.c
tlan.h