Re: [PATCH] net: ethernet: ti: cpsw: fix NULL pointer dereference in switch mode

2017-02-01 Thread David Miller
From: Grygorii Strashko 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

Re: [PATCH] net: ethernet: ti: cpsw: fix NULL pointer dereference in switch mode

2017-02-01 Thread Ivan Khoronzhuk
On Tue, Jan 31, 2017 at 02:04:04PM -0600, Grygorii Strashko wrote: > 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" except

[PATCH] net: ethernet: ti: cpsw: fix NULL pointer dereference in switch mode

2017-01-31 Thread Grygorii Strashko
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 ca