Re: Re [PATCH v3] wmi/core: fix use-after-free in wmi_add_device()
From: Armin Wolf
Date: Mon Jun 22 2026 - 17:19:35 EST
Am 22.06.26 um 22:57 schrieb yahia:
Hi Armin,
Thank you for your clarification, I am
completely on board with the idea of changing
the flags though I dont get whether you mean
change DL_FLAG_AUTOREMOVE_SUPPLIER in favor
of DL_FLAG_AUTOREMOVE_CONSUMER or do you have
a different idea in mind?
Best regards,
yahia
DL_FLAG_AUTOREMOVE_CONSUMER should not be used because the device link needs to
remain even after a child WMI device unbinds his driver.
I thought about simply dropping DL_FLAG_AUTOREMOVE_SUPPLIER, but i would be very
happy if you could test that this actually works.
Thanks,
Armin Wolf