summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-07-05 13:10:55 -0600
committerGitHub <noreply@github.com>2020-07-05 13:10:55 -0600
commit2a370d432f5bb0580f9bfb5c24465f13c2726604 (patch)
treec0b6c917d246acd755320cb209490beade5b76c0 /libs
parent8285c7c56d8ddaab4ddb687a13578bdce681e458 (diff)
downloadbcm5719-ortega-2a370d432f5bb0580f9bfb5c24465f13c2726604.tar.gz
bcm5719-ortega-2a370d432f5bb0580f9bfb5c24465f13c2726604.zip
network: Fix possible infinate loop in Network_TX_allocateBlock (#85)
Diffstat (limited to 'libs')
-rw-r--r--libs/Network/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/Network/tx.c b/libs/Network/tx.c
index 0918d30..20a33a7 100644
--- a/libs/Network/tx.c
+++ b/libs/Network/tx.c
@@ -94,7 +94,7 @@ int32_t __attribute__((noinline)) Network_TX_allocateBlock(NetworkPort_t *port)
RegAPETxToNetBufferAllocator_t status;
do
{
- status = *((RegAPETxToNetBufferAllocator_t *)port->tx_allocator);
+ status = *port->tx_allocator;
} while (APE_TX_TO_NET_BUFFER_ALLOCATOR_STATE_PROCESSING == status.bits.State);
if (APE_TX_TO_NET_BUFFER_ALLOCATOR_STATE_ALLOCATION_OK != status.bits.State)
OpenPOWER on IntegriCloud