[PATCH] vdpa/ifc/base: fix null pointer dereference
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Jul 8 10:51:26 CEST 2022
On 7/8/22 07:57, Andy Pei wrote:
> Fix null pointer dereference reported in coverity scan.
> Output some log information when lm_cfg is null.
> Make lm_cfg is not null before operate on lm_cfg.
Make sure*
>
> Coverity issue: 378882
> Fixes: d7fe5a2861e7 ("net/ifc: support live migration")
>
> Signed-off-by: Andy Pei <andy.pei at intel.com>
> ---
> drivers/vdpa/ifc/base/ifcvf.c | 31 ++++++++++++++++++++-----------
> drivers/vdpa/ifc/base/ifcvf_osdep.h | 1 +
> 2 files changed, 21 insertions(+), 11 deletions(-)
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list