mirror of https://github.com/ipxe/ipxe.git
[qib7322] Use correct length for memset()
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/58/merge
parent
6ee15cbac3
commit
ae915aa5cc
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in New Issue