Skip to content

mfd: twl-core: Fix dangling twl_priv on teardown and probe failure

Lee Jones linux-omap lkml mfd stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 0 repliesNew

Changes in v3 from the cover letter

- Rebased patch 1 onto for-mfd-next
- Sent the previously standalone devres follow-up as patch 2

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mfd: twl-core: Clear twl_priv pointer on teardown and probe failuredrivers/mfd/twl-core.c+12 -30 replies
2/2mfd: twl-core: Reset twl_priv using devm_add_action_or_reset()drivers/mfd/twl-core.c+9 -40 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAndreas Kemnade
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] mfd: twl-core: Fix dangling twl_priv on teardown and probe failure

These issues were reported by Sashiko.

Patch 1 is the minimal, Stable-suitable fix from v2 (13/27), which was skipped when the rest of that series was applied due to a collision with "mfd: twl-core: Unregister the auxiliary platform device on unbind".

Patch 2 is the follow-up suggested by Andreas, converting the manual twl_priv reset to a devres action.

v2 => v3:
- Rebased patch 1 onto for-mfd-next
- Sent the previously standalone devres follow-up as patch 2

v2 (patch 1): https://lore.kernel.org/all/[email protected]/
v1 (patch 2): https://lore.kernel.org/all/[email protected]/

Cc Aaro Koskinen <[email protected]>
Cc Andreas Kemnade <[email protected]>
Cc Kai Svahn <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Peter Ujfalusi <[email protected]>
Cc Roger Quadros <[email protected]>
Cc Samuel Ortiz <[email protected]>
Cc syed khasim <[email protected]>
Cc Tony Lindgren <[email protected]>

Lee Jones (2):
mfd: twl-core: Clear twl_priv pointer on teardown and probe failure
mfd: twl-core: Reset twl_priv using devm_add_action_or_reset()

 drivers/mfd/twl-core.c | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
Signature · 1 line
2.56.1.750.gf70dc682cf-goog