[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170201.120623.1662011578093223998.davem@davemloft.net>
Date: Wed, 01 Feb 2017 12:06:23 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: grygorii.strashko@...com
Cc: netdev@...r.kernel.org, ivan.khoronzhuk@...aro.org, nsekhar@...com,
linux-kernel@...r.kernel.org, linux-omap@...r.kernel.org
Subject: Re: [PATCH] net: ethernet: ti: cpsw: fix NULL pointer dereference
in switch mode
From: Grygorii Strashko <grygorii.strashko@...com>
Date: Tue, 31 Jan 2017 14:04:04 -0600
> In switch mode on struct cpsw_slave->ndev field will be initialized with
> proper value only for the one cpsw slave port, as result
> cpsw_get_usage_count() will generate "Unable to handle kernel NULL pointer
> dereference" exception when first ethernet interface is opening
> cpsw_ndo_open(). This issue causes boot regression on AM335x EVM and
> reproducible on am57xx-evm (switch mode).
> Fix it by adding additional check for !cpsw->slaves[i].ndev in
> cpsw_get_usage_count().
>
> Cc: Ivan Khoronzhuk <ivan.khoronzhuk@...aro.org>
> fixes: 03fd01ad0eea ("net: ethernet: ti: cpsw: don't duplicate ndev_running")
Please capitalize "Fixes: " in the future.
> Signed-off-by: Grygorii Strashko <grygorii.strashko@...com>
Applied, thanks.
Powered by blists - more mailing lists