david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[qib7322] Use correct length for memset()

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

View File

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