mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +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;
|
||||
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 ) );
|
||||
|
||||
Reference in New Issue
Block a user