Skip to content

thermal: Fix/cleanup error paths in __thermal_cooling_device_register()

Viresh Kumar linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 of 3 patches 2 repliesIn review

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/3thermal: core: Move cdev cleanup to thermal_release()drivers/thermal/thermal_core.c+14 -191 reply
3/3thermal: core: Use device_unregister() instead of device_del/put()drivers/thermal/thermal_core.c+1 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFrank RowandYang YingliangCaleb Connolly
SeriesT-b R-b T-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] thermal: Fix/cleanup error paths in __thermal_cooling_device_register()

Hi,

The error paths in __thermal_cooling_device_register() are trying to free un-acquired resources, fix that and clean it up a bit.

Caleb, can you please test this? I have just build tested it for now.

--
Viresh

Viresh Kumar (3):
thermal: core: call put_device() only after device_register() fails
thermal: core: Move cdev cleanup to thermal_release()
thermal: core: Use device_unregister() instead of device_del/put()

 drivers/thermal/thermal_core.c | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)
Signature · 1 line
2.31.1.272.g89b43f80a514