Re [PATCH v3] wmi/core: fix use-after-free in wmi_add_device()

From: yahia

Date: Mon Jun 22 2026 - 16:30:27 EST


Hi Armin,

As per the documentation, The automatic cleanup is only
triggered if the supplier probes or unbinds

Similarly, when the device link is added from supplier's ``->probe`` callback,
``DL_FLAG_AUTOREMOVE_SUPPLIER`` causes the device link to be automatically
purged when the supplier fails to probe or later unbinds.

To my understanding, the cleanup won't activate
here because we don't unbind pdev nor does the
probe fail.

Best regards,
yahia