patch-ioctl_c 336 B

1234567891011
  1. --- cryptodev-linux-1.7.orig/ioctl.c 2015-02-07 15:31:23.000000000 -0600
  2. +++ cryptodev-linux-1.7/ioctl.c 2015-02-19 14:47:24.775772135 -0600
  3. @@ -546,7 +546,7 @@ static int
  4. clonefd(struct file *filp)
  5. {
  6. int ret;
  7. - ret = get_unused_fd();
  8. + ret = get_unused_fd_flags(0);
  9. if (ret >= 0) {
  10. get_file(filp);
  11. fd_install(ret, filp);