mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
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: 93a7653031
("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>
This commit is contained in:
parent
fa7566a0d6
commit
2074f9eaa5
@ -1981,7 +1981,7 @@ MODULE_DEVICE_TABLE(of, am65_cpsw_nuss_of_mtable);
|
||||
|
||||
static int am65_cpsw_nuss_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct cpsw_ale_params ale_params;
|
||||
struct cpsw_ale_params ale_params = { 0 };
|
||||
const struct of_device_id *of_id;
|
||||
struct device *dev = &pdev->dev;
|
||||
struct am65_cpsw_common *common;
|
||||
|
Loading…
Reference in New Issue
Block a user