All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vdpa/sfc: fix null dereference
@ 2022-01-29 17:54 Weiguo Li
  0 siblings, 0 replies; only message in thread
From: Weiguo Li @ 2022-01-29 17:54 UTC (permalink / raw)
  To: vsrivast; +Cc: dev

Fixes: b11961363b4a ("vdpa/sfc: support device configure and close")

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
---
 drivers/vdpa/sfc/sfc_vdpa_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vdpa/sfc/sfc_vdpa_ops.c b/drivers/vdpa/sfc/sfc_vdpa_ops.c
index c4ce4474ef..183834189c 100644
--- a/drivers/vdpa/sfc/sfc_vdpa_ops.c
+++ b/drivers/vdpa/sfc/sfc_vdpa_ops.c
@@ -666,7 +666,7 @@ sfc_vdpa_dev_close(int vid)
 
 	ops_data = sfc_vdpa_get_data_by_dev(vdpa_dev);
 	if (ops_data == NULL) {
-		sfc_vdpa_err(ops_data->dev_handle,
+		SFC_VDPA_GENERIC_LOG(ERR,
 			     "invalid vDPA device : %p, vid : %d",
 			     vdpa_dev, vid);
 		return -1;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-29 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-29 17:54 [PATCH] vdpa/sfc: fix null dereference Weiguo Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.