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