Skip to content

Commit 1c7cfb6

Browse files
committed
Merge tag 'riscv-firmware-for-v6.9' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into arm/fixes
RISC-V firmware drivers for v6.9 A single minor fix for an oversized allocation due to sizeof() misuse by yours truly that came in since I sent my last fixes PR. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> * tag 'riscv-firmware-for-v6.9' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: firmware: microchip: Fix over-requested allocation size Link: https://lore.kernel.org/r/20240305-vicinity-dumpling-8943ef26f004@spud Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 415ba4e + af1e0a7 commit 1c7cfb6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/firmware/microchip/mpfs-auto-update.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ static int mpfs_auto_update_available(struct mpfs_auto_update_priv *priv)
384384
u32 *response_msg;
385385
int ret;
386386

387-
response_msg = devm_kzalloc(priv->dev, AUTO_UPDATE_FEATURE_RESP_SIZE * sizeof(response_msg),
387+
response_msg = devm_kzalloc(priv->dev,
388+
AUTO_UPDATE_FEATURE_RESP_SIZE * sizeof(*response_msg),
388389
GFP_KERNEL);
389390
if (!response_msg)
390391
return -ENOMEM;

0 commit comments

Comments
 (0)