From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Thu, 04 Jan 2024 10:08:02 +0000 Subject: [PATCH] disable FB --- kernel/drivers/net/ethernet/dec/tulip/eeprom.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/kernel/drivers/net/ethernet/dec/tulip/eeprom.c b/kernel/drivers/net/ethernet/dec/tulip/eeprom.c index 1812f49..ba0a69b 100644 --- a/kernel/drivers/net/ethernet/dec/tulip/eeprom.c +++ b/kernel/drivers/net/ethernet/dec/tulip/eeprom.c @@ -224,9 +224,7 @@ return; } - mtable = kmalloc(sizeof(struct mediatable) + - count * sizeof(struct medialeaf), - GFP_KERNEL); + mtable = kmalloc(struct_size(mtable, mleaf, count), GFP_KERNEL); if (mtable == NULL) return; /* Horrible, impossible failure. */ last_mediatable = tp->mtable = mtable; -- Gitblit v1.6.2