[PATCH] mei: avoid reuse client on bus for vtag
From: Alexander Usyskin
Date: Thu Oct 29 2026 - 02:17:25 EST
Bus device assumes exclusive ownership on client object.
Do not allow vtag connect to reuse client owned by device on bus.
Signed-off-by: Alexander Usyskin <alexander.usyskin@xxxxxxxxx>
---
drivers/misc/mei/main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 4fbf0b323616..1795f1a00b67 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -572,6 +572,10 @@ static int mei_ioctl_connect_vtag(struct file *file,
if (!IS_ERR(mei_cl_fp_by_vtag(pos, vtag)))
continue;
+ /* do not share with devices on bus */
+ if (pos->cldev)
+ continue;
+
/* replace cl with acquired one */
cl_dbg(dev, cl, "replacing with existing cl\n");
mei_cl_unlink(cl);
---
base-commit: 79e5797d243a466138f641932f81dc69f796060c
change-id: 20261029-mei_avoid_reuse_bus_on_vtag-7fb85d4e4f5c
Best regards,
--
Alexander Usyskin <alexander.usyskin@xxxxxxxxx>