summaryrefslogtreecommitdiffstats
path: root/kernel/irq/msi.c
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2024-09-17 16:20:12 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2024-09-17 16:20:12 +0200
commit987cbafe628ae67fe6cad0ce1dcc41743147ef3e (patch)
treeb232f4e500eef9f02663c1664531504c970725fd /kernel/irq/msi.c
parentLinux 6.11 (diff)
parentgenirq: Use cpumask_intersects() (diff)
downloadlinux-987cbafe628ae67fe6cad0ce1dcc41743147ef3e.tar.xz
linux-987cbafe628ae67fe6cad0ce1dcc41743147ef3e.zip
Merge tag 'irq-core-2024-09-16' into loongarch-next
LoongArch architecture changes for 6.12 depend on the irq core changes about AVEC irqchip to avoid confliction, so merge them to create a base.
Diffstat (limited to 'kernel/irq/msi.c')
-rw-r--r--kernel/irq/msi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index 5fa0547ece0c..1c7e5159064c 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -82,7 +82,7 @@ static struct msi_desc *msi_alloc_desc(struct device *dev, int nvec,
desc->dev = dev;
desc->nvec_used = nvec;
if (affinity) {
- desc->affinity = kmemdup(affinity, nvec * sizeof(*desc->affinity), GFP_KERNEL);
+ desc->affinity = kmemdup_array(affinity, nvec, sizeof(*desc->affinity), GFP_KERNEL);
if (!desc->affinity) {
kfree(desc);
return NULL;