[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170508.180007.626860706220120048.davem@davemloft.net>
Date: Mon, 08 May 2017 18:00:07 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: jon.mason@...adcom.com
Cc: f.fainelli@...il.com, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
bcm-kernel-feedback-list@...adcom.com
Subject: Re: [PATCH] net: mdio-mux: bcm-iproc: call mdiobus_free() in error
path
From: Jon Mason <jon.mason@...adcom.com>
Date: Mon, 8 May 2017 17:48:35 -0400
> If an error is encountered in mdio_mux_init(), the error path will call
> mdiobus_free(). Since mdiobus_register() has been called prior to
> mdio_mux_init(), the bus->state will not be MDIOBUS_UNREGISTERED. This
> causes a BUG_ON() in mdiobus_free(). To correct this issue, add an
> error path for mdio_mux_init() which calls mdiobus_unregister() prior to
> mdiobus_free().
>
> Signed-off-by: Jon Mason <jon.mason@...adcom.com>
> Fixes: 98bc865a1ec8 ("net: mdio-mux: Add MDIO mux driver for iProc SoCs")
Applied and queued up for -stable.
Powered by blists - more mailing lists