FAILED: patch "[PATCH] platform/x86: hp-bioscfg: Support allocations of larger data" failed to apply to 6.19-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.19-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.19.y
git checkout FETCH_HEAD
git cherry-pick -x 916727cfdb72cd01fef3fa6746e648f8cb70e713
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026030929-repeated-ungraded-202a@gregkh' --subject-prefix 'PATCH 6.19.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 916727cfdb72cd01fef3fa6746e648f8cb70e713 Mon Sep 17 00:00:00 2001
From: Mario Limonciello <[email protected]>
Date: Wed, 25 Feb 2026 15:06:46 -0600
Subject: [PATCH] platform/x86: hp-bioscfg: Support allocations of larger data
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Some systems have much larger amounts of enumeration attributes than have been previously encountered. This can lead to page allocation failures when using kcalloc(). Switch over to using kvcalloc() to allow larger allocations.
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c +6 -3
@@ -94,8 +94,11 @@ int hp_alloc_enumeration_data(void) bioscfg_drv.enumeration_instances_count =hp_get_instance_count (HP_WMI_BIOS_ENUMERATION_GUID ); - bioscfg_drv.enumeration_data =kzalloc_objs (*bioscfg_drv.enumeration_data, - bioscfg_drv.enumeration_instances_count); +if (!bioscfg_drv.enumeration_instances_count) +return -EINVAL ; + bioscfg_drv.enumeration_data =kvcalloc (bioscfg_drv.enumeration_instances_count, +sizeof (*bioscfg_drv.enumeration_data),GFP_KERNEL ); +if (!bioscfg_drv.enumeration_data) { bioscfg_drv.enumeration_instances_count =0 ;return -ENOMEM ;
@@ -444,6 +447,6 @@ void hp_exit_enumeration_attributes(void) } bioscfg_drv.enumeration_instances_count =0 ; -kfree (bioscfg_drv.enumeration_data); +kvfree (bioscfg_drv.enumeration_data); bioscfg_drv.enumeration_data =NULL ; }
Sasha Levin
maintainerPATCH 1/1 platform/x86: hp-bioscfg: Support allocations of larger data
From: Mario Limonciello <[email protected]>
[ Upstream commit 916727cfdb72cd01fef3fa6746e648f8cb70e713 ]
Some systems have much larger amounts of enumeration attributes than have been previously encountered. This can lead to page allocation failures when using kcalloc(). Switch over to using kvcalloc() to allow larger allocations.
--- drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c +6 -3
@@ -94,8 +94,11 @@ int hp_alloc_enumeration_data(void) bioscfg_drv.enumeration_instances_count =hp_get_instance_count (HP_WMI_BIOS_ENUMERATION_GUID ); - bioscfg_drv.enumeration_data =kcalloc (bioscfg_drv.enumeration_instances_count, -sizeof (*bioscfg_drv.enumeration_data),GFP_KERNEL ); +if (!bioscfg_drv.enumeration_instances_count) +return -EINVAL ; + bioscfg_drv.enumeration_data =kvcalloc (bioscfg_drv.enumeration_instances_count, +sizeof (*bioscfg_drv.enumeration_data),GFP_KERNEL ); +if (!bioscfg_drv.enumeration_data) { bioscfg_drv.enumeration_instances_count =0 ;return -ENOMEM ;
@@ -444,6 +447,6 @@ void hp_exit_enumeration_attributes(void) } bioscfg_drv.enumeration_instances_count =0 ; -kfree (bioscfg_drv.enumeration_data); +kvfree (bioscfg_drv.enumeration_data); bioscfg_drv.enumeration_data =NULL ; }
Signature · 1 line
2.51.0