]> git.droids-corp.org - dpdk.git/commit
vdpa/sfc: fix null dereference during removal
authorWeiguo Li <liwg06@foxmail.com>
Sat, 29 Jan 2022 17:30:12 +0000 (01:30 +0800)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 10 Feb 2022 15:07:44 +0000 (16:07 +0100)
commit500640b328c2ce623715ca8ec013e7a8ff922428
treeefe43dfd6ac60bc63f5495ca302b60963bda7e06
parentb474ce12a4b165d957c0fad3d0b88e0a7cdd50b3
vdpa/sfc: fix null dereference during removal

When sva is null, sfc_vdpa_info(sva, ...) will cause a null
dereference. Use SFC_VDPA_GENERIC_LOG() to avoid that.
See macros sfc_vdpa_info and SFC_VDPA_GENERIC_LOG
defined in drivers/vdpa/sfc/sfc_vdpa_log.h for detail.

Fixes: 5e7596ba7cb3 ("vdpa/sfc: introduce Xilinx vDPA driver")
Cc: stable@dpdk.org
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/sfc/sfc_vdpa.c