Browse Source

[linda] Use correct length for memset()

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

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

@@ -537,7 +537,7 @@ static int linda_init_send ( struct linda *linda ) {
537 537
 		rc = -ENOMEM;
538 538
 		goto err_alloc_sendbufavail;
539 539
 	}
540
-	memset ( linda->sendbufavail, 0, sizeof ( linda->sendbufavail ) );
540
+	memset ( linda->sendbufavail, 0, sizeof ( *linda->sendbufavail ) );
541 541
 
542 542
 	/* Program SendBufAvailAddr into the hardware */
543 543
 	memset ( &sendbufavailaddr, 0, sizeof ( sendbufavailaddr ) );

Loading…
Cancel
Save