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

mana_ib_create_wq(): Return the value of ib_umem_get() in case of a failure #18

Open
dotan-barak opened this issue Nov 8, 2021 · 1 comment

Comments

@dotan-barak
Copy link
Collaborator

Instead of the code:
umem = ib_umem_get(pd->device, ucmd.wq_buf_addr, ucmd.wqe * 32,
IB_ACCESS_LOCAL_WRITE); // 32 WQE size!
if (IS_ERR(umem)) {
kfree(wq);
return ERR_PTR(-ENOMEM);
}

Use the following:
umem = ib_umem_get(pd->device, ucmd.wq_buf_addr, ucmd.wqe * 32,
IB_ACCESS_LOCAL_WRITE); // 32 WQE size!
if (IS_ERR(umem)) {
kfree(wq);
return umem;
}

@dotan-barak
Copy link
Collaborator Author

Working on this issue

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

1 participant