correct sizeof calculation
PR: arm/128095 Submitted by: Henning Petersen MFC after: 1 week
This commit is contained in:
parent
aa0334ca2f
commit
fdfb3870dc
@ -448,7 +448,7 @@ npe_dma_setup(struct npe_softc *sc, struct npedma *dma,
|
||||
{
|
||||
int error, i;
|
||||
|
||||
memset(dma, 0, sizeof(dma));
|
||||
memset(dma, 0, sizeof(*dma));
|
||||
|
||||
dma->name = name;
|
||||
dma->nbuf = nbuf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user