summaryrefslogtreecommitdiff
path: root/net/eth-uclass.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-10-21 19:13:05 -0400
committerTom Rini <trini@konsulko.com>2020-10-21 19:13:05 -0400
commit5d92dacbbe8a751e95f0ad0cf7c3d2370e9a04c7 (patch)
treefdf9d347d1f09669604242921eccd18aa9554074 /net/eth-uclass.c
parent5675ed7cb645f5ec13958726992daeeed16fd114 (diff)
parent42f804fbba2836e64f472306ff7616c812d5c54d (diff)
Merge tag 'efi-2021-01-rc1-2' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2021-01-rc1 (2) A use after free in the UEFI network stack is fixed.
Diffstat (limited to 'net/eth-uclass.c')
-rw-r--r--net/eth-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index 4424d595f46..e14695c0f16 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -383,7 +383,7 @@ int eth_rx(void)
/* Process up to 32 packets at one time */
flags = ETH_RECV_CHECK_DEVICE;
- for (i = 0; i < 32; i++) {
+ for (i = 0; i < ETH_PACKETS_BATCH_RECV; i++) {
ret = eth_get_ops(current)->recv(current, flags, &packet);
flags = 0;
if (ret > 0)