]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: am65-cpsw-nuss: fix ale parameters init
authorGrygorii Strashko <grygorii.strashko@ti.com>
Sat, 13 Jun 2020 14:52:59 +0000 (17:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Jun 2020 22:35:08 +0000 (15:35 -0700)
commitd89a4b5d1aba88aadc002db8c689bfe1e6694edc
tree953cc104eb8241f4d2b82cfb69e08aef0b3ae24f
parent827ee903a45262eb20f3708f61b3469f0f6e1b12
net: ethernet: ti: am65-cpsw-nuss: fix ale parameters init

The ALE parameters structure is created on stack, so it has to be reset
before passing to cpsw_ale_create() to avoid garbage values.

Fixes: ddd326a112f7 ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-nuss.c