mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-drivers/nvidia-drivers: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/19617 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
committed by
Conrad Kostecki
parent
a9d90852c5
commit
7f6317d96e
@@ -1,18 +0,0 @@
|
||||
Patch taken from
|
||||
https://forums.developer.nvidia.com/t/455-23-04-page-allocation-failure-in-kernel-module-at-random-points/155250/55
|
||||
Bug: https://bugs.gentoo.org/755497
|
||||
Credits go to Gregory Beauregard for pointing this out
|
||||
|
||||
--- a/kernel/nvidia-modeset/nvidia-modeset-linux.c
|
||||
+++ b/kernel/nvidia-modeset/nvidia-modeset-linux.c
|
||||
@@ -282,8 +282,8 @@
|
||||
* are called while nvkms_lock is held.
|
||||
*************************************************************************/
|
||||
|
||||
-/* Don't use kmalloc for allocations larger than 128k */
|
||||
-#define KMALLOC_LIMIT (128 * 1024)
|
||||
+/* Don't use kmalloc for allocations larger than one page */
|
||||
+#define KMALLOC_LIMIT PAGE_SIZE
|
||||
|
||||
void* NVKMS_API_CALL nvkms_alloc(size_t size, NvBool zero)
|
||||
{
|
||||
Reference in New Issue
Block a user