Skip to content

Fix buffer size calculation in nvme_dsm function #172

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wnsah814
Copy link
Contributor

While implementing discard/trim functionality, I discovered that slba was always coming in as 0.
Upon investigation, I found an incorrect memory allocation in the code and fixed it.

I later noticed this issue was already mentioned in issue #165, but since no PR had been submitted to address it yet, I'm providing this fix.

I hope this contribution helps improve the codebase.

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

Successfully merging this pull request may close these issues.

1 participant