Skip to content

Commit

Permalink
[linda] Use correct length for memset()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 21, 2017
1 parent e500e5d commit 6ee15cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/infiniband/linda.c
Expand Up @@ -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 ) );
Expand Down

0 comments on commit 6ee15cb

Please sign in to comment.