Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     int ret = 0;
  2.     int remains;
  3.     struct uart16550_line_info *data = NULL;
  4.  
  5.     switch (cmd) {
  6.     case UART16550_IOCTL_SET_LINE:
  7.         remains = copy_from_user(data, (struct uart16550_line_info __user *)arg,
  8.                 sizeof(struct uart16550_line_info *));
  9.         if (remains) {
  10.             ret = -EFAULT;
  11.         }
  12.         break;
  13.     default:
  14.         ret = -EINVAL;
  15.     }
  16.     return ret;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top