#include #include "taia.h" static const struct taia tolerance_taia = { .sec.x = 0, .nano = 700000000ULL, /* 700ms acceptance window */ .atto = 0, }; bool taia_looks_good(struct taia *arr_taia, struct taia *pkt_taia) { bool good = false; struct taia tmp; if (taia_less(arr_taia, pkt_taia)) { taia_sub(&tmp, pkt_taia, arr_taia); if (taia_less(&tmp, &tolerance_taia)) good = true; } else { taia_sub(&tmp, arr_taia, pkt_taia); if (taia_less(&tmp, &tolerance_taia)) good = true; } return good; } t repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2016-07-15 15:42:52 -0700
committerDavid S. Miller <davem@davemloft.net>2016-07-15 16:03:47 -0700
commite86663c475d384ab5f46cb5637e9b7ad08c5c505 (patch)
tree73991452764e36e6e42e149141ec1680bff58f39 /Documentation/devicetree/bindings/net
parentf57ec1889f5e830e93723d1262fd9c73703d531d (diff)
net: bgmac: Fix infinite loop in bgmac_dma_tx_add()
Nothing is decrementing the index "i" while we are cleaning up the fragments we could not successful transmit. Fixes: 9cde94506eacf ("bgmac: implement scatter/gather support") Reported-by: coverity (CID 1352048) Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree/bindings/net')