mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #1228 from dangowrt/fix-cryptodev-on-kernel-4
cryptodev: get rid of get_unused_fd()
This commit is contained in:
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
|
|
||||||
PKG_NAME:=cryptodev-linux
|
PKG_NAME:=cryptodev-linux
|
||||||
PKG_VERSION:=1.7
|
PKG_VERSION:=1.7
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://download.gna.org/cryptodev-linux/
|
PKG_SOURCE_URL:=http://download.gna.org/cryptodev-linux/
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Index: cryptodev-linux-1.7/ioctl.c
|
||||||
|
===================================================================
|
||||||
|
--- cryptodev-linux-1.7.orig/ioctl.c
|
||||||
|
+++ cryptodev-linux-1.7/ioctl.c
|
||||||
|
@@ -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);
|
||||||
Reference in New Issue
Block a user