]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: hp-bioscfg: Support allocations of larger data
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 25 Feb 2026 21:06:46 +0000 (15:06 -0600)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 27 Feb 2026 11:10:16 +0000 (13:10 +0200)
commit916727cfdb72cd01fef3fa6746e648f8cb70e713
tree241cc5437e531f95f6ba7fc3bd913b7fff67f725
parentcd0883055b04586770dab43c64159348bf480a3e
platform/x86: hp-bioscfg: Support allocations of larger data

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.

Fixes: 6b2770bfd6f92 ("platform/x86: hp-bioscfg: enum-attributes")
Cc: stable@vger.kernel.org
Reported-by: Paul Kerry <p.kerry@sheffield.ac.uk>
Tested-by: Paul Kerry <p.kerry@sheffield.ac.uk>
Closes: https://bugs.debian.org/1127612
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20260225210646.59381-1-mario.limonciello@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c