[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131014194937.GD4260@blackmetal.musicnaut.iki.fi>
Date: Mon, 14 Oct 2013 22:49:37 +0300
From: Aaro Koskinen <aaro.koskinen@....fi>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: support@...iumnetworks.com, David Daney <david.daney@...ium.com>,
Greg KH <gregkh@...uxfoundation.org>,
driverdev-devel@...uxdriverproject.org,
Sebastian Pöhn <sebastian.poehn@...il.com>,
netdev@...r.kernel.org
Subject: Re: [PATCH] staging: octeon-ethernet: trivial: Avoid OOPS if phydev
is not set
On Mon, Oct 14, 2013 at 10:16:49PM +0300, Dan Carpenter wrote:
> On Mon, Oct 14, 2013 at 09:39:06PM +0300, Aaro Koskinen wrote:
> > It's initialized in cvm_oct_phy_setup_device():
> >
> > priv->phydev = of_phy_connect(dev, phy_node, cvm_oct_adjust_link, 0,
> ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
>
> Sorry I should have explained better.
>
> We use cvm_oct_adjust_link() to initialize priv->phydev but
> cvm_oct_adjust_link() depends on priv->phydev. It seems like we would
> hit the NULL dereference every time. Weird huh?
It doesn't happen on my system (EdgeRouter Lite). I think you need to
explain even more better. :-)
What you mean by "We use cvm_oct_adjust_link() to initialize
priv->phydev..."? Sorry, maybe I'm just missing something really
obvious...
A.
--
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