Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1.         // cast arg so we can use it
  2.         ptr = (struct snpe_ioc_setcfgdiv_cfg *) arg;
  3.  
  4.         // copy the values into kernel space
  5.         if (get_user(div, &(ptr->div))) {
  6.                 printf(KERN_ERR "error: could not copy div from userspace.\n");
  7.                 return -1;
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement