[dpdk-dev] [PATCH v1] eal: fix negative value incorrectly being used defect

2015-12-12 Thread Thomas Monjalon
2015-12-11 15:54, David Marchand: > Hello Cunming, > > On Fri, Dec 11, 2015 at 2:48 AM, Cunming Liang > wrote: > > > In eal_intr_proc_rxtx_intr, negative value may be used as argument to a > > function expecting a positive value. If 'read' returns EAGAIN as example, > > the bytes_read updates to

[dpdk-dev] [PATCH v1] eal: fix negative value incorrectly being used defect

2015-12-11 Thread David Marchand
Hello Cunming, On Fri, Dec 11, 2015 at 2:48 AM, Cunming Liang wrote: > In eal_intr_proc_rxtx_intr, negative value may be used as argument to a > function expecting a positive value. If 'read' returns EAGAIN as example, > the bytes_read updates to a negative value which continue be passed as > ar

[dpdk-dev] [PATCH v1] eal: fix negative value incorrectly being used defect

2015-12-11 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cunming Liang > Sent: Friday, December 11, 2015 1:49 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v1] eal: fix negative value incorrectly being > used defect > > In eal_intr_

[dpdk-dev] [PATCH v1] eal: fix negative value incorrectly being used defect

2015-12-11 Thread Cunming Liang
In eal_intr_proc_rxtx_intr, negative value may be used as argument to a function expecting a positive value. If 'read' returns EAGAIN as example, the bytes_read updates to a negative value which continue be passed as argument for the next 'read'. Coverity issue: 107115 927do { 3. n