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