]> git.pld-linux.org Git - packages/wl.git/blame - kernel-4.14.patch
- fix building with kernel 5.10
[packages/wl.git] / kernel-4.14.patch
CommitLineData
c504579c
JR
1--- a/src/shared/linux_osl.c
2+++ b/src/shared/linux_osl.c
3@@ -1080,7 +1080,11 @@ osl_os_get_image_block(char *buf, int le
4 if (!image)
5 return 0;
6
7+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
8+ rdlen = kernel_read(fp, buf, len, &fp->f_pos);
9+#else
10 rdlen = kernel_read(fp, fp->f_pos, buf, len);
11+#endif
12 if (rdlen > 0)
13 fp->f_pos += rdlen;
14
This page took 0.071746 seconds and 4 git commands to generate.