You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2022/01/03 11:53:00 UTC
[incubator-nuttx] 03/03: net/devif/devif_cansend.c: fix assertion for max data len
This is an automated email from the ASF dual-hosted git repository.
gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 6185377eece2cca8b867035507ab105cfbeadabb
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Jan 3 11:45:42 2022 +0100
net/devif/devif_cansend.c: fix assertion for max data len
---
net/devif/devif_cansend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/devif/devif_cansend.c b/net/devif/devif_cansend.c
index 60325a5..b82956c 100644
--- a/net/devif/devif_cansend.c
+++ b/net/devif/devif_cansend.c
@@ -83,7 +83,7 @@
void devif_can_send(FAR struct net_driver_s *dev, FAR const void *buf,
unsigned int len)
{
- DEBUGASSERT(dev && len > 0 && len < NETDEV_PKTSIZE(dev));
+ DEBUGASSERT(dev && len > 0 && len <= NETDEV_PKTSIZE(dev));
/* Copy the data into the device packet buffer */