mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
drivers: net: ldpaa: Memset pools_params as "0" before use
Memset pools_params as "0" to avoid garbage value in dpni_set_pools. Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Reported-by: Jose Rivera <german.rivera@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
a434fd1d28
commit
31a48cf4e1
1 changed files with 1 additions and 0 deletions
|
@ -920,6 +920,7 @@ static int ldpaa_dpni_bind(struct ldpaa_eth_priv *priv)
|
|||
struct dpni_tx_conf_cfg tx_conf_cfg;
|
||||
int err = 0;
|
||||
|
||||
memset(&pools_params, 0, sizeof(pools_params));
|
||||
pools_params.num_dpbp = 1;
|
||||
pools_params.pools[0].dpbp_id = (uint16_t)dflt_dpbp->dpbp_attr.id;
|
||||
pools_params.pools[0].buffer_size = LDPAA_ETH_RX_BUFFER_SIZE;
|
||||
|
|
Loading…
Reference in a new issue