linux/drivers/net/ethernet/cadence
Gilles Chanteperdrix c293fb785b net/at91_ether: avoid NULL pointer dereference
The at91_ether driver calls macb_mii_init passing a 'struct macb'
structure whose tx_clk member is initialized to 0. However,
macb_handle_link_change() expects tx_clk to be the result of
a call to clk_get, and so IS_ERR(tx_clk) to be true if the clock
is invalid. This causes an oops when booting Linux 3.14 on the
csb637 board. The following changes avoids this.

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-04-07 15:10:17 -04:00
..
Kconfig Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
Makefile net/at91_ether: select MACB in Kconfig 2012-10-23 02:40:09 -04:00
at91_ether.c net/at91_ether: avoid NULL pointer dereference 2014-04-07 15:10:17 -04:00
macb.c macb: remove empty MDIO bus reset function 2014-03-28 01:38:01 -04:00
macb.h net: macb: Adjust tx_clk when link speed changes 2013-12-10 22:56:23 -05:00