mirror of https://github.com/ipxe/ipxe.git
[linda] Use correct length for memset()
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/58/merge
parent
e500e5dd07
commit
6ee15cbac3
|
@ -537,7 +537,7 @@ static int linda_init_send ( struct linda *linda ) {
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
goto err_alloc_sendbufavail;
|
goto err_alloc_sendbufavail;
|
||||||
}
|
}
|
||||||
memset ( linda->sendbufavail, 0, sizeof ( linda->sendbufavail ) );
|
memset ( linda->sendbufavail, 0, sizeof ( *linda->sendbufavail ) );
|
||||||
|
|
||||||
/* Program SendBufAvailAddr into the hardware */
|
/* Program SendBufAvailAddr into the hardware */
|
||||||
memset ( &sendbufavailaddr, 0, sizeof ( sendbufavailaddr ) );
|
memset ( &sendbufavailaddr, 0, sizeof ( sendbufavailaddr ) );
|
||||||
|
|
Loading…
Reference in New Issue