[openwrt/openwrt] cryptodev-linux: Support kernel 5.10.220
LEDE Commits
lede-commits at lists.infradead.org
Sun Jul 7 13:23:46 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/1f69203081994d540bdc8806d29d88fd55ed4aae
commit 1f69203081994d540bdc8806d29d88fd55ed4aae
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Thu Jul 4 22:45:40 2024 +0200
cryptodev-linux: Support kernel 5.10.220
In kernel 5.10.220 many file system related patches were backported. One
of them removed ksys_close(). Extend the version check for 5.10.220.
Link: https://github.com/openwrt/openwrt/pull/15843
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../cryptodev-linux/patches/001-fix-ksys_close.patch | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/kernel/cryptodev-linux/patches/001-fix-ksys_close.patch b/package/kernel/cryptodev-linux/patches/001-fix-ksys_close.patch
new file mode 100644
index 0000000000..ff0a770196
--- /dev/null
+++ b/package/kernel/cryptodev-linux/patches/001-fix-ksys_close.patch
@@ -0,0 +1,14 @@
+ksys_close() was removed in 5.10.220, see:
+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=1aecdaa7e2c6619a7d2c0a81c8f5c06e52f870f3
+
+--- a/ioctl.c
++++ b/ioctl.c
+@@ -871,7 +871,7 @@ cryptodev_ioctl(struct file *filp, unsig
+ if (unlikely(ret)) {
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0))
+ sys_close(fd);
+-#elif (LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0))
++#elif (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 220))
+ ksys_close(fd);
+ #else
+ close_fd(fd);
More information about the lede-commits
mailing list