Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // cast arg so we can use it
- ptr = (struct snpe_ioc_setcfgdiv_cfg *) arg;
- // copy the values into kernel space
- if (get_user(div, &(ptr->div))) {
- printf(KERN_ERR "error: could not copy div from userspace.\n");
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement