Skip to content

Commit 2074f9e

Browse files
grygoriySdavem330
authored andcommitted
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: 93a7653 ("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>
1 parent fa7566a commit 2074f9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/ti/am65-cpsw-nuss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ MODULE_DEVICE_TABLE(of, am65_cpsw_nuss_of_mtable);
19811981

19821982
static int am65_cpsw_nuss_probe(struct platform_device *pdev)
19831983
{
1984-
struct cpsw_ale_params ale_params;
1984+
struct cpsw_ale_params ale_params = { 0 };
19851985
const struct of_device_id *of_id;
19861986
struct device *dev = &pdev->dev;
19871987
struct am65_cpsw_common *common;

0 commit comments

Comments
 (0)