https://bugs.linaro.org/show_bug.cgi?id=1688

            Bug ID: 1688
           Summary: CID 98427: /example/packet/odp_pktio.c
           Product: OpenDataPlane
           Version: 1.1
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: ---
         Component: Packet IO
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

287                                     /* Swap Eth MACs and IP-addrs */
288                                     swap_pkt_addrs(pkt_tbl, pkts_ok);
289                                     sent = odp_pktio_send(pktio, pkt_tbl,
pkts_ok);
290                                     if (odp_unlikely(sent < pkts_ok)) {
291                                             err_cnt += pkts_ok - sent;
292                                             do
>>>     CID 98427:    (NEGATIVE_RETURNS)
>>>     Using variable "sent" as an index to array "pkt_tbl".
293                                                    
odp_packet_free(pkt_tbl[sent]);
294                                             while (++sent < pkts_ok);
295                                     }
296                             }
297
298                             if (odp_unlikely(pkts_ok != pkts))

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to