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

memcpy can not be used in driver #5

Open
rjw999 opened this issue May 8, 2016 · 1 comment
Open

memcpy can not be used in driver #5

rjw999 opened this issue May 8, 2016 · 1 comment

Comments

@rjw999
Copy link

rjw999 commented May 8, 2016

memcpy in read and write should be replaced by copy_from_user or copy_to_user
because the buf point to the userspace address which can not be direct accessed in kernel

@durellinux
Copy link
Owner

Thanks for pointing it out.
I am going to work on the drivers soon, since they do not manage well multiple writes scenario, so I will include your suggestion too.

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