05/07/2021 13:07, Xueming(Steven) Li:
> From: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru>
> > From: Viacheslav Galaktionov <viacheslav.galaktio...@oktetlabs.ru>
> > 
> > In its current state, the API can overflow the user-passed buffer if a new 
> > representor range appears between function calls.
> > 
> > In order to solve this problem, augment the representor info structure with 
> > the numbers of allocated and initialized ranges. This way
> > the users of this structure can be sure they will not overrun the buffer.
> > 
> > Fixes: 85e1588ca72f ("ethdev: add API to get representor info")
> > Cc: sta...@dpdk.org
> > 
> > Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktio...@oktetlabs.ru>
> > Signed-off-by: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru>
> 
> Reviewed-by: Xueming Li <xuemi...@nvidia.com>

Applied, thanks.



Reply via email to