[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140407.151047.1262185364557499792.davem@davemloft.net>
Date: Mon, 07 Apr 2014 15:10:47 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: gilles.chanteperdrix@...omai.org
Cc: nicolas.ferre@...el.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net/at91_ether: avoid NULL pointer dereference
From: Gilles Chanteperdrix <gilles.chanteperdrix@...omai.org>
Date: Sun, 6 Apr 2014 20:37:44 +0200
> 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@...omai.org>
Applied and queued up for -stable, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists