[dpdk-dev] [PATCH] vhost: fix coverity defect

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Apr 6 12:18:04 CEST 2016


> Fix following coverity defect:
> 
>     291     void
>     292     vhost_destroy_device(struct vhost_device_ctx ctx)
>     293     {
>     294             struct virtio_net *dev = get_device(ctx);
>     295
>     >>>     CID 124565:  Null pointer dereferences  (NULL_RETURNS)
>     >>>     Dereferencing a null pointer "dev".
> 
> Fixes: 45ca9c6f7bc6 ("vhost: get rid of linked list for devices")
> 
> Reported-by: John McNamara <john.mcnamara at intel.com>
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>

Applied, thanks


More information about the dev mailing list