david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[linda] Use correct length for memset()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-21 13:50:51 +02:00
parent e500e5dd07
commit 6ee15cbac3
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ static int linda_init_send ( struct linda *linda ) {
rc = -ENOMEM;
goto err_alloc_sendbufavail;
}
memset ( linda->sendbufavail, 0, sizeof ( linda->sendbufavail ) );
memset ( linda->sendbufavail, 0, sizeof ( *linda->sendbufavail ) );
/* Program SendBufAvailAddr into the hardware */
memset ( &sendbufavailaddr, 0, sizeof ( sendbufavailaddr ) );