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

Neil Horman nhorman at tuxdriver.com
Fri Aug 28 12:27:42 CEST 2015

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>

More information about the dev mailing list