diff options
author | Marian-Cristian Rotariu <marian.rotariu@freescale.com> | 2015-02-09 14:51:23 (GMT) |
---|---|---|
committer | Madalin Bucur <madalin.bucur@freescale.com> | 2015-03-11 16:08:08 (GMT) |
commit | 40d4b32868085de08a11b7d664d05e8581c05b2e (patch) | |
tree | 45be92d91f7df6c8d33a5ef00298b566cfc2e07f | |
parent | 418bb03b14f2a0c6f622d1091c2ff18c4bb35398 (diff) | |
download | linux-fsl-qoriq-40d4b32868085de08a11b7d664d05e8581c05b2e.tar.xz |
dpaa_eth: memset the local declared array
For some reason, in the simulator, the newly declared local array does not have
the value set on 0. This patch will memset the array to 0. These values are
sent to the BMan driver.
Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com>
Change-Id: I1a8c9c48748885e021d7d45ce3286e23a4e3c39d
Reviewed-on: http://git.am.freescale.net:8181/30393
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Reviewed-by: Yang Li <LeoLi@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/32505
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c index f9644a8..41d068f3 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sg.c @@ -102,6 +102,8 @@ static int _dpa_bp_add_8_bufs(const struct dpa_bp *dpa_bp) struct device *dev = dpa_bp->dev; struct sk_buff *skb, **skbh; + memset(bmb, 0, sizeof(struct bm_buffer) * 8); + for (i = 0; i < 8; i++) { /* We'll prepend the skb back-pointer; can't use the DPA * priv space, because FMan will overwrite it (from offset 0) |