diff options
author | Rolf Eike Beer <eike-kernel@sf-tec.de> | 2022-05-20 15:28:21 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-21 02:14:40 +0200 |
commit | dc2df00af951569689ec39ce0a41b1dff7e3595e (patch) | |
tree | 81dbb2e50842c0e0fccf19b0baebd8fd3148ab09 /drivers/net/ethernet/dec | |
parent | net: avoid strange behavior with skb_defer_max == 1 (diff) | |
download | linux-dc2df00af951569689ec39ce0a41b1dff7e3595e.tar.xz linux-dc2df00af951569689ec39ce0a41b1dff7e3595e.zip |
net: tulip: fix build with CONFIG_GSC
Fix typo which breaks build for parisc.
Fixes: 3daebfbeb455 ("net: tulip: convert to devres")
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Link: https://lore.kernel.org/all/CA+G9fYuCzU5VZ_nc+6NEdBXJdVCH=J2SB1Na1G_NS_0BNdGYtg@mail.gmail.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Link: https://lore.kernel.org/r/4719560.GXAFRqVoOG@eto.sf-tec.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/dec')
-rw-r--r-- | drivers/net/ethernet/dec/tulip/eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dec/tulip/eeprom.c b/drivers/net/ethernet/dec/tulip/eeprom.c index 67a67cb78dbb..d5657ff15e3c 100644 --- a/drivers/net/ethernet/dec/tulip/eeprom.c +++ b/drivers/net/ethernet/dec/tulip/eeprom.c @@ -117,7 +117,7 @@ static void tulip_build_fake_mediatable(struct tulip_private *tp) 0x00, 0x06 /* ttm bit map */ }; - tp->mtable = devm_kmalloc(&tp->pdev->pdev, sizeof(struct mediatable) + + tp->mtable = devm_kmalloc(&tp->pdev->dev, sizeof(struct mediatable) + sizeof(struct medialeaf), GFP_KERNEL); if (tp->mtable == NULL) |