correct sizeof calculation
PR: arm/128095 Submitted by: Henning Petersen MFC after: 1 week
This commit is contained in:
parent
e7b0147d7e
commit
0c7b0d4568
@ -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…
Reference in New Issue
Block a user