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 <raide...@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 */