[dpdk-dev] [PATCH] rte_eth_af_packet: refactor error handling to avoid NULL pointer dereference

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Oct 20 18:02:04 CEST 2015


2015-08-28 06:27, Neil Horman:
> On Thu, Aug 27, 2015 at 01:17:13PM -0400, John W. Linville wrote:
> > Coverity CID # 13321
> > 
> > Checking *internals != NULL before accessing req is not good enough,
> > because **internals is a function argument and the function doesn't
> > really know what is passed-in.  We can close our eyes and ignore the
> > warning on the basis of controlling all the calling code, or we can
> > refactor the error exit to avoid the issue entirely...
> > 
> > Signed-off-by: John W. Linville <linville at tuxdriver.com>
> 
> Acked-by: Neil Horman <nhorman at tuxdriver.com>

Applied, thanks


More information about the dev mailing list