diff mbox series

net: eth_legacy - fix build CMD_PCAP

Message ID 20201204195958.29384-1-jorge@foundries.io
State Accepted
Commit c1ab73814515c865896b0abc54d3071a1a273537
Delegated to: Tom Rini
Headers show
Series net: eth_legacy - fix build CMD_PCAP | expand

Commit Message

Jorge Ramirez-Ortiz Dec. 4, 2020, 7:59 p.m. UTC
Fix typo which would cause a build error.

Fixes: 3eaac6307df ("net: introduce packet capture support")

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
---
 net/eth_legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Jan. 19, 2021, 8:01 p.m. UTC | #1
On Fri, Dec 04, 2020 at 08:59:58PM +0100, Jorge Ramirez-Ortiz wrote:

> Fix typo which would cause a build error.
> 
> Fixes: 3eaac6307df ("net: introduce packet capture support")
> 
> Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/net/eth_legacy.c b/net/eth_legacy.c
index 6e0c058761..6870afb505 100644
--- a/net/eth_legacy.c
+++ b/net/eth_legacy.c
@@ -365,7 +365,7 @@  int eth_send(void *packet, int length)
 	ret = eth_current->send(eth_current, packet, length);
 #if defined(CONFIG_CMD_PCAP)
 	if (ret >= 0)
-		pcap_post(packet, lengeth, true);
+		pcap_post(packet, length, true);
 #endif
 	return ret;
 }