[dpdk-dev] [PATCH] reorder: add checks for invalid function inputs

Iremonger, Bernard bernard.iremonger at intel.com
Thu Apr 11 10:43:26 CEST 2019


> -----Original Message-----
> From: Richardson, Bruce
> Sent: Wednesday, April 10, 2019 12:25 PM
> To: dev at dpdk.org
> Cc: Iremonger, Bernard <bernard.iremonger at intel.com>; Richardson, Bruce
> <bruce.richardson at intel.com>
> Subject: [PATCH] reorder: add checks for invalid function inputs
> 
> For APIs which can return an error value, do sanity checking of the input
> parameters for NULL and return a suitable error value for those cases.
> 
> NOTE: The drain function is currently omitting NULL checks too, but this
> function has no way to flag an error value, so checking in that case would
> simply mask problems.
> 
> Reported-by: Bernard Iremonger <bernard.iremonger at intel.com>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Acked-by: Bernard Iremonger <bernard.iremonger at intel.com>


More information about the dev mailing list