mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 20:40:25 +03:00
[qib7322] Use correct length for memset()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 ) );
|
||||
|
||||
Reference in New Issue
Block a user