Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocate correct size buffer #66

Open
Sindhu-Devale opened this issue Oct 31, 2019 · 1 comment
Open

Allocate correct size buffer #66

Sindhu-Devale opened this issue Oct 31, 2019 · 1 comment

Comments

@Sindhu-Devale
Copy link
Contributor

In ctx_alloc_credit function in perftest_resources.c file, ctrl_buf is allocated a size of user_param->num_of_qps however it is being memset to a size of buf_size:

ALLOCATE(ctx->ctrl_buf,uint32_t,user_param->num_of_qps);
memset(&ctx->ctrl_buf[0],0,buf_size);

Fix this by allocating the right size ctrl_buf:

ALLOCATE(ctx->ctrl_buf,uint32_t,buf_size);

@dimasique1
Copy link
Contributor

Hi Sindhu-Devale,

Thank you for collaboration! Please, send a corresponding PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants