diff options
author | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2016-03-28 11:41:05 +0300 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-05-04 01:52:11 +0300 |
commit | 31a48cf4e158160e0482415457ef0f69f079368d (patch) | |
tree | a40146986462e2fbf77a1646f42860acba533af2 | |
parent | a434fd1d282fd32d81296c6d4c2e0911f6e488b3 (diff) | |
download | u-boot-31a48cf4e158160e0482415457ef0f69f079368d.tar.xz |
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>
-rw-r--r-- | drivers/net/ldpaa_eth/ldpaa_eth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index bc7f8bb023..75b2b6b049 100644 --- a/drivers/net/ldpaa_eth/ldpaa_eth.c +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c @@ -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; |