summarylogtreecommitdiffstats
path: root/linux-cjktty-patch-for-5.4.36+.patch
diff options
context:
space:
mode:
Diffstat (limited to 'linux-cjktty-patch-for-5.4.36+.patch')
-rw-r--r--linux-cjktty-patch-for-5.4.36+.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux-cjktty-patch-for-5.4.36+.patch b/linux-cjktty-patch-for-5.4.36+.patch
new file mode 100644
index 000000000000..139586c4c542
--- /dev/null
+++ b/linux-cjktty-patch-for-5.4.36+.patch
@@ -0,0 +1,11 @@
+--- linux-cjktty-5.4.patch 2020-04-30 11:29:47.000000000 +0800
++++ linux-cjktty-5.4.36.patch 2020-04-30 11:36:17.000000000 +0800
+@@ -137,7 +137,7 @@
+ if (new_cols == vc->vc_cols && new_rows == vc->vc_rows)
+ return 0;
+
+- if (new_screen_size > (4 << 20))
++ if (new_screen_size > KMALLOC_MAX_SIZE)
+ return -EINVAL;
+ - newscreen = kzalloc(new_screen_size, GFP_USER);
+ +