summarylogtreecommitdiffstats
path: root/02-changeMaxOrder.patch
diff options
context:
space:
mode:
Diffstat (limited to '02-changeMaxOrder.patch')
-rw-r--r--02-changeMaxOrder.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/02-changeMaxOrder.patch b/02-changeMaxOrder.patch
new file mode 100644
index 000000000000..69d23e1a5233
--- /dev/null
+++ b/02-changeMaxOrder.patch
@@ -0,0 +1,14 @@
+--- a/blackmagic-io-12.8.1a1/bm_util.c 2024-02-09 02:02:38.000000000 +0100
++++ b/blackmagic-io-12.8.1a1/bm_util.c 2024-03-11 22:10:20.051722843 +0100
+@@ -137,7 +137,11 @@
+ alloc_size += align - 1;
+ }
+
++#if KERNEL_VERSION_OR_LATER(6, 8, 0)
++ if (get_order(alloc_size) < MAX_PAGE_ORDER)
++#else
+ if (get_order(alloc_size) < MAX_ORDER)
++#endif
+ mem = (vm_address_t)kmalloc(alloc_size, GFP_KERNEL);
+
+ if (mem == 0 && (flags & BM_ALLOC_CONTIGUOUS) == 0)