[dpdk-dev] [PATCH v3] vhost: fix null pointer checking

Tiwei Bie tiwei.bie at intel.com
Fri Apr 12 07:21:09 CEST 2019


On Thu, Apr 11, 2019 at 03:48:40PM +0100, Mohammad Abdul Awal wrote:
> Null value for parameters will cause segfault.
> 
> Fixes: d7280c9fff ("vhost: support selective datapath")
> Fixes: 72e8543093 ("vhost: add API to get MTU value")
> Fixes: a277c71598 ("vhost: refactor code structure")
> Fixes: ca33faf9ef ("vhost: introduce API to fetch negotiated features")
> Fixes: eb32247457 ("vhost: export guest memory regions")
> Fixes: 40ef286f23 ("vhost: export vhost vring info")
> Fixes: bd2e0c3fe5 ("vhost: add APIs for live migration")
> Fixes: 0b8572a0c1 ("vhost: add external message handling to the API")
> Fixes: b4953225ce ("vhost: add APIs for datapath configuration")
> Fixes: 5fbb3941da ("vhost: introduce driver features related APIs")
> Fixes: 292959c719 ("vhost: cleanup unix socket")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal at intel.com>
> ---
> v3: fixed per review comments
> 
> v2: fixed per review comments
> 
>  lib/librte_vhost/socket.c |  8 +++++++-
>  lib/librte_vhost/vdpa.c   |  5 ++++-
>  lib/librte_vhost/vhost.c  | 16 ++++++++--------
>  3 files changed, 19 insertions(+), 10 deletions(-)

Reviewed-by: Tiwei Bie <tiwei.bie at intel.com>


More information about the dev mailing list