Browse Source

[qib7322] Use correct length for memset()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 years ago
parent
commit
ae915aa5cc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/infiniband/qib7322.c

+ 1
- 1
src/drivers/infiniband/qib7322.c View File

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

Loading…
Cancel
Save