diff options
author | Michael Brown | 2017-03-21 12:50:51 +0100 |
---|---|---|
committer | Michael Brown | 2017-03-21 12:50:51 +0100 |
commit | 6ee15cbac358914fef8bf9d9a9e5ea8bee29c99d (patch) | |
tree | 12d175a88ea5fe3f5f499b6f1b8761059b140ef0 /src/drivers/infiniband | |
parent | [nfs] Fix double free bug on error path (diff) | |
download | ipxe-6ee15cbac358914fef8bf9d9a9e5ea8bee29c99d.tar.gz ipxe-6ee15cbac358914fef8bf9d9a9e5ea8bee29c99d.tar.xz ipxe-6ee15cbac358914fef8bf9d9a9e5ea8bee29c99d.zip |
[linda] Use correct length for memset()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband')
-rw-r--r-- | src/drivers/infiniband/linda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/infiniband/linda.c b/src/drivers/infiniband/linda.c index 77d50d11..e8d61c86 100644 --- a/src/drivers/infiniband/linda.c +++ b/src/drivers/infiniband/linda.c @@ -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 ) ); |