diff options
author | Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> | 2014-04-06 22:37:44 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-07 23:10:17 +0400 |
commit | c293fb785bdda64d88f197e6758a3c16ae83e569 (patch) | |
tree | 3c0e585c7e298d841f9c533ad8f7a8b526d1fef1 /net/wireless/ap.c | |
parent | 065d7e39563b092dbb429373bd8f0f2295768cea (diff) | |
download | linux-c293fb785bdda64d88f197e6758a3c16ae83e569.tar.xz |
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>
Diffstat (limited to 'net/wireless/ap.c')
0 files changed, 0 insertions, 0 deletions