mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-02 09:52:18 +00:00
10abb8b734
* Add: broadcom-wl and wl-kmod * Fix: Built kmods without RPM Fusion deps fixed BuildRequires because actually why was it done that way * Cleanup: Removed EOL Fedora and RHEL versions from specs * Cleanup/security: Fixed more spec stuff for EOL Fedora/EL versions, removed a legacy file that if changed could result in an unbootable kernel * Fix: Use Mock Co-authored-by: madomado <madonuko@outlook.com> Signed-off-by: Gil <rockgrub@protonmail.com> * Cleanup: More removal of EOL conditions Signed-off-by: Gil <rockgrub@protonmail.com> * Cleanup: Typo Signed-off-by: Gil <rockgrub@protonmail.com> * Cleanup/security: Removed a patch related to a previously removed file that could result in an unbootable kernel --------- Signed-off-by: Gil <rockgrub@protonmail.com> Co-authored-by: madomado <madonuko@outlook.com>
21 lines
720 B
Diff
21 lines
720 B
Diff
diff -Naur hybrid-v35_64-nodebug-pcoem-6_30_223_271.orig/src/shared/linux_osl.c hybrid-v35_64-nodebug-pcoem-6_30_223_271/src/shared/linux_osl.c
|
|
--- hybrid-v35_64-nodebug-pcoem-6_30_223_271.orig/src/shared/linux_osl.c 2017-11-24 10:45:55.764626000 +0100
|
|
+++ hybrid-v35_64-nodebug-pcoem-6_30_223_271/src/shared/linux_osl.c 2019-01-26 19:33:46.518389607 +0100
|
|
@@ -1075,6 +1075,7 @@
|
|
osl_os_get_image_block(char *buf, int len, void *image)
|
|
{
|
|
struct file *fp = (struct file *)image;
|
|
+ loff_t pos = fp->f_pos;
|
|
int rdlen;
|
|
|
|
if (!image)
|
|
@@ -1085,7 +1086,7 @@
|
|
#else
|
|
rdlen = kernel_read(fp, fp->f_pos, buf, len);
|
|
#endif
|
|
- if (rdlen > 0)
|
|
+ if ((rdlen > 0) && (fp->f_pos == pos))
|
|
fp->f_pos += rdlen;
|
|
|
|
return rdlen;
|