]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/appletbdrm: Use kvzalloc for big allocations
authorSasha Finkelstein <k@chaosmail.tech>
Mon, 20 Apr 2026 12:17:43 +0000 (14:17 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Apr 2026 09:33:01 +0000 (11:33 +0200)
commitaaaa684bab1f6d9ecfc49db328facb1771fd0eb2
tree3a534d61e77907174ec0841f54388e0d77fd6c9d
parent4aa8110000b0d215deef8eed283565dd0c1def88
drm/appletbdrm: Use kvzalloc for big allocations

This driver is attached to a ~2000x80 screen, which is a lot more than
a single page. This causes out of memory errors in some rare cases.

Reported-by: soopyc <cassie@soopy.moe>
Closes: https://github.com/t2linux/fedora/issues/51
Signed-off-by: Sasha Finkelstein <k@chaosmail.tech>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Aditya Garg <gargaditya08@live.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 0670c2f56e45 ("drm/tiny: add driver for Apple Touch Bars in x86 Macs")
Cc: <stable@vger.kernel.org> # v6.15+
Link: https://patch.msgid.link/20260420-x86-tb-vmalloc-v1-1-7757ff657223@chaosmail.tech
drivers/gpu/drm/tiny/appletbdrm.c