[dpdk-dev] [PATCH v2] rte mempool: division or modulo by zero

Thomas Monjalon thomas.monjalon at 6wind.com
Tue May 24 11:07:59 CEST 2016


Please take care of the title.
Here you know it is not a modulo but you keep copying the coverity message.
It is fixed to "mempool: avoid division by zero"

2016-05-23 13:28, Olivier Matz:
> On 05/19/2016 02:36 PM, Slawomir Mrozowicz wrote:
> > Fix issue reported by Coverity.
> > 
> > Coverity ID 13243: Division or modulo by zero
> > In function call rte_mempool_xmem_size, division by expression total_size
> > which may be zero has undefined behavior.

Please prefer this format instead of the first 2 lines:

Coverity issue: 13243
> > Fixes: 148f963fb532 ("xen: core library changes")
> > 
> > Signed-off-by: Slawomir Mrozowicz <slawomirx.mrozowicz at intel.com>
> 
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>

Applied, thanks


More information about the dev mailing list